Skip to content

Commit

Permalink
wasm size optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
StuartHarris committed Sep 22, 2024
1 parent e528903 commit 63b5a25
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wasm-components/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ resolver = "2"
serde_json = "1.0.117"
serde = { version = "1.0", features = ["derive"] }
wit-bindgen = "0.32"

[profile.release]
opt-level = "z" # Optimize for size.
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
panic = "abort" # Abort on panic
strip = true # Automatically strip symbols from the binary.

0 comments on commit 63b5a25

Please sign in to comment.