From 22fded4d0f1c132228550a4ba851561431b3225f Mon Sep 17 00:00:00 2001 From: magic-akari Date: Wed, 10 Jul 2024 15:00:11 +0800 Subject: [PATCH] perf(bindings/wasm): Shrink the size of the wasm file (#9191) --- bindings/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bindings/Cargo.toml b/bindings/Cargo.toml index 8dcc3014dd95a..0ebbdcbd5f723 100644 --- a/bindings/Cargo.toml +++ b/bindings/Cargo.toml @@ -16,11 +16,12 @@ resolver = "2" # lto = "fat" # debug = true -# opt-level = 'z' +opt-level = 'z' # Strip debug symbols strip = "symbols" +codegen-units = 1 [profile.dev.package."*"] debug-assertions = false