Skip to content

Commit a9de914

Browse files
author
exti0p
committed
Size optimization for release mode + Bump dependencies
1 parent 6617ef5 commit a9de914

3 files changed

Lines changed: 20 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.4.1] - 2023-03-10
9+
10+
### Fixed
11+
12+
- Size optimization for release mode
13+
- Bump dependencies
14+
815
## [0.4.0] - 2022-12-21
916

1017
### Added

Cargo.toml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "git2mail"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
authors = ["exti0p"]
55
edition = "2021"
66
license = "LGPL-3.0-only"
@@ -13,14 +13,21 @@ categories = ["command-line-utilities"]
1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

1515
[dependencies]
16-
clap = "4.0.30"
16+
clap = "4.1.4"
1717
itertools = "0.10.5"
1818
openssl = { version = "0.10.45", features = ["vendored"] }
19-
regex = "1.7.0"
20-
reqwest = { version = "0.11.13", features = ["blocking", "json"] }
21-
serde = { version = "1.0.151", features = ["derive"] }
22-
serde_json = "1.0.91"
19+
regex = "1.7.1"
20+
reqwest = { version = "0.11.14", features = ["blocking", "json"] }
21+
serde = { version = "1.0.152", features = ["derive"] }
22+
serde_json = "1.0.92"
2323

2424
# logging
2525
log = "0.4.17"
2626
pretty_env_logger = "0.4.0"
27+
28+
[profile.release]
29+
opt-level = "z" # Optimize for size
30+
lto = true # Enable Link Time Optimization
31+
codegen-units = 1 # Reduce number of codegen units to increase optimizations
32+
panic = "abort" # Abort on panic
33+
strip = true # Automatically strip symbols from the binary

src/controller.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,6 @@ fn get_project_root() -> io::Result<PathBuf> {
578578

579579
for path in path_ancestors {
580580
let has_cargo: bool = read_dir(path)?
581-
.into_iter()
582581
.any(|path| match path {
583582
Ok(path) => Ok(path.file_name()),
584583
_ => Err("Current path could not be handled")

0 commit comments

Comments
 (0)