Skip to content

Commit

Permalink
cargo: Enable LTO on release build.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpds committed Feb 9, 2024
1 parent dd84780 commit 9fb7196
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,9 @@ wasm-bindgen-crate = { version = "0.2.58", package = "wasm-bindgen" }
# tokio = { path = "../tokio/tokio" }
# mio = { git = "https://github.com/tokio-rs/mio.git" }
# h2 = { git = "https://github.com/hyperium/h2.git" }

[profile.release]
lto = true
codegen-units = 1
opt-level = "s"
strip = true

0 comments on commit 9fb7196

Please sign in to comment.