Skip to content

Commit

Permalink
Further shrink the WASM output by using more aggressive optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Dec 2, 2024
1 parent 81a02f6 commit 1db7ab9
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 1db7ab9

Please sign in to comment.