From dbb48114cef959ce36d058d697fcdee449bf9616 Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Fri, 9 Feb 2024 13:57:34 +0000 Subject: [PATCH] cargo: Enable LTO on release build. --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index c33ae78e..23573ca7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"