From a0292eb789b2a54b1678ef91ed3095b0ce989e47 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Fri, 16 May 2025 18:37:34 -0500 Subject: [PATCH] Add a "mini" build profile It's like release, but with LTO and LLVM's `-Oz` size optimization. --- Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 47dc039f..20ca2383 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,6 +27,14 @@ opt-level = 3 # codegen-units = 1 lto = "fat" +[profile.mini] +inherits = "release" +lto = true +opt-level = "z" +codegen-units = 1 +strip = "symbols" +panic = "abort" + [profile.wasm-release] inherits = "release" opt-level = "z"