cargo: Enable LTO on release build.
This commit is contained in:
parent
ede83dc7d6
commit
dbb48114ce
@ -111,3 +111,9 @@ wasm-bindgen-crate = { version = "0.2.58", package = "wasm-bindgen" }
|
|||||||
# tokio = { path = "../tokio/tokio" }
|
# tokio = { path = "../tokio/tokio" }
|
||||||
# mio = { git = "https://github.com/tokio-rs/mio.git" }
|
# mio = { git = "https://github.com/tokio-rs/mio.git" }
|
||||||
# h2 = { git = "https://github.com/hyperium/h2.git" }
|
# h2 = { git = "https://github.com/hyperium/h2.git" }
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
lto = true
|
||||||
|
codegen-units = 1
|
||||||
|
opt-level = 3
|
||||||
|
strip = "symbols"
|
||||||
|
Loading…
Reference in New Issue
Block a user