Skip to content

Commit

Permalink
feat: reduce binary size of libpact_ffi / verifier_cli
Browse files Browse the repository at this point in the history
[profile.release]
strip = true
opt-level = "z"
codegen-units = 1

we do not use lto=true, as this config is applied at the root level to both the pact_ffi and verifier_cli crates. lto=true inflates the size of the static libraries dramatically. It may be prudent to apply this in the release scripts for the verifier cli to allow for further executable size reductions.

Should we elect for setting these values conditionally or via a seperate profile, such that we dont affect the --release profile for other crates in the workspace?
  • Loading branch information
YOU54F committed Jun 8, 2024
1 parent 5699cab commit 29359fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ resolver = "2"

[patch.crates-io]
onig = { git = "https://github.com/rust-onig/rust-onig", default-features = false }

[profile.release]
strip = true
opt-level = "z"
codegen-units = 1

0 comments on commit 29359fe

Please sign in to comment.