From 663fa639286f08f714d76009c1d76709189410eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Tue, 26 Mar 2024 07:25:54 +0100 Subject: [PATCH] Optimized release output. --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5ccb31c..67c6a46 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -90,7 +90,11 @@ wasm_thread = { version = "0.2.0", features = ["es_modules"]} winres = "0.1" [profile.release] -strip = "symbols" +opt-level = 'z' # Optimize for size +lto = true # Enable link-time optimization +codegen-units = 1 # Reduce number of codegen units to increase optimizations +panic = 'abort' # Abort on panic +strip = true # Strip symbols from binary* [package.metadata.bundle] name = "Icy Term"