Skip to content

Commit bbc107c

Browse files
authored
Merge pull request #64 from pact-foundation/feat/reduce_exe_size
feat: reduce executable size
2 parents 3118495 + 2325de3 commit bbc107c

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)