From 89ee32880700b86265d57c53b740b3d1936991de Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Tue, 29 Jul 2025 22:06:01 -0500 Subject: [PATCH] A couple extra build profiles --- Cargo.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index dba76f6..3ea8525 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,3 +15,19 @@ debug_ui = ["bevy_rapier2d/debug-render-2d"] [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.3.3", features = ["wasm_js"] } + +[profile.wasm-O3] +inherits = "release" +codegen-units = 1 +lto = "fat" +opt-level = 3 +strip = "symbols" +panic = "abort" + +[profile.wasm-Oz] +inherits = "release" +codegen-units = 1 +lto = "fat" +opt-level = "z" +strip = "symbols" +panic = "abort"