From 2baf44265cdff3797020f135a4ee354372e1f26e Mon Sep 17 00:00:00 2001 From: Carlo Piovesan Date: Thu, 14 Nov 2024 09:31:07 +0100 Subject: [PATCH] Enable LTO and strip symbols in release --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 19ed968..ecbc661 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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