Skip to content

Commit

Permalink
chore: Add build profiles that optimize for size (#3534)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray authored Nov 22, 2023
1 parent 251b930 commit 4f7a6ae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,16 @@ num-traits = "0.2"
# This is required to be able to run `cargo test` in acvm_js due to the `locals exceeds maximum` error.
# See https://ritik-mishra.medium.com/resolving-the-wasm-pack-error-locals-exceed-maximum-ec3a9d96685b
opt-level = 1


[profile.size]
inherits = "release"
lto = true
opt-level = "z"

[profile.size-aggressive]
inherits = "release"
strip = true
lto = true
panic = "abort"
opt-level = "z"

0 comments on commit 4f7a6ae

Please sign in to comment.