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"