Skip to content

Commit

Permalink
Size optimization for release mode + Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
exti0p committed Mar 10, 2023
1 parent 6617ef5 commit a9de914
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.1] - 2023-03-10

### Fixed

- Size optimization for release mode
- Bump dependencies

## [0.4.0] - 2022-12-21

### Added
Expand Down
19 changes: 13 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "git2mail"
version = "0.4.0"
version = "0.4.1"
authors = ["exti0p"]
edition = "2021"
license = "LGPL-3.0-only"
Expand All @@ -13,14 +13,21 @@ categories = ["command-line-utilities"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = "4.0.30"
clap = "4.1.4"
itertools = "0.10.5"
openssl = { version = "0.10.45", features = ["vendored"] }
regex = "1.7.0"
reqwest = { version = "0.11.13", features = ["blocking", "json"] }
serde = { version = "1.0.151", features = ["derive"] }
serde_json = "1.0.91"
regex = "1.7.1"
reqwest = { version = "0.11.14", features = ["blocking", "json"] }
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.92"

# logging
log = "0.4.17"
pretty_env_logger = "0.4.0"

[profile.release]
opt-level = "z" # Optimize for size
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations
panic = "abort" # Abort on panic
strip = true # Automatically strip symbols from the binary
1 change: 0 additions & 1 deletion src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,6 @@ fn get_project_root() -> io::Result<PathBuf> {

for path in path_ancestors {
let has_cargo: bool = read_dir(path)?
.into_iter()
.any(|path| match path {
Ok(path) => Ok(path.file_name()),
_ => Err("Current path could not be handled")
Expand Down

0 comments on commit a9de914

Please sign in to comment.