Skip to content

Commit

Permalink
Enable LTO and strip symbols in release
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Nov 14, 2024
1 parent b2df5c9 commit 2baf442
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 @@ -6,6 +6,10 @@ edition = "2021"
[lib]
crate-type = ["cdylib"]

[profile.release]
lto = true
strip = true

[[example]]
# crate-type can't be (at the moment) be overriden for specific targets
# src/wasm_lib.rs forwards to src/lib.rs so that we can change from cdylib
Expand Down

0 comments on commit 2baf442

Please sign in to comment.