Skip to content

Commit

Permalink
Merge pull request #172 from matrix-org/quenting/shrink-wasm
Browse files Browse the repository at this point in the history
Further shrink the WASM output by using more aggressive optimizations
  • Loading branch information
sandhose authored Dec 2, 2024
2 parents 81a02f6 + 1db7ab9 commit 62e004f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ wasm-opt = ['-Oz', '-g']
# Tell cargo to run `rustc` with `-Oz` - ie, to optimize for size.
# https://doc.rust-lang.org/cargo/reference/profiles.html#opt-level
opt-level = 'z'
# Use a single codegen-unit to enable better optimizations
codegen-units = 1
# Enable fat link time optimization
lto = true

[lib]
crate-type = ["cdylib"]
Expand Down

0 comments on commit 62e004f

Please sign in to comment.