Skip to content

Commit 2325de3

Browse files
committed
feat: reduce executable size
[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 efa86ca commit 2325de3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Cargo.toml

+11
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,14 @@ pretty_assertions = "1.3.0"
4444
test-log = "0.2.11"
4545
env_logger = "0.10.0"
4646
trycmd = "0.14.16"
47+
48+
[profile.release]
49+
strip = true
50+
opt-level = "z"
51+
codegen-units = 1
52+
lto = true
53+
54+
# References
55+
# https://doc.rust-lang.org/stable/rustc/codegen-options/
56+
# https://doc.rust-lang.org/rustc/profile-guided-optimization.html
57+
# https://github.com/johnthagen/min-sized-rust

0 commit comments

Comments
 (0)