From 3a23b3d120a14ca514204ef80bf744bb483dcfd6 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 8dcc3014dd9..0ebbdcbd5f7 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