Skip to content

Commit 652fbd4

Browse files
committed
feat: reduce executable size
# Slim executables ```toml [profile.release] strip = true opt-level = "z" codegen-units = 1 lto = true ``` ## References - https://doc.rust-lang.org/stable/rustc/codegen-options/ - https://doc.rust-lang.org/rustc/profile-guided-optimization.html - https://github.com/johnthagen/min-sized-rust
1 parent 99cdd58 commit 652fbd4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,8 @@ trim-margin = "0.1.0"
8888
built = { version = "0.7.2", features = [ "git2" ] }
8989
os_info = "3.8.2"
9090

91+
[profile.release]
92+
strip = true
93+
opt-level = "z"
94+
codegen-units = 1
95+
lto = true

0 commit comments

Comments
 (0)