cargo: Enable LTO on release build.

This commit is contained in:
Jonathan Davies 2024-02-09 13:57:34 +00:00 committed by Benjamin Fry
parent ede83dc7d6
commit dbb48114ce

View File

@ -111,3 +111,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 = 3
strip = "symbols"