Skip to content

Commit

Permalink
Merge pull request #64 from pact-foundation/feat/reduce_exe_size
Browse files Browse the repository at this point in the history
feat: reduce executable size
  • Loading branch information
rholshausen authored Apr 25, 2024
2 parents 3118495 + 2325de3 commit bbc107c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,14 @@ pretty_assertions = "1.3.0"
test-log = "0.2.11"
env_logger = "0.10.0"
trycmd = "0.14.16"

[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

0 comments on commit bbc107c

Please sign in to comment.