From 750195e28eaf46f9e72f5b8d35279be54e9fac86 Mon Sep 17 00:00:00 2001 From: spinline Date: Fri, 30 Jan 2026 01:52:59 +0300 Subject: [PATCH] fix(build): Disable wasm-opt (0) to resolve validation errors, keep Rust z-opt --- .cargo/config.toml | 2 -- Cargo.toml | 2 +- frontend/index.html | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index d999aa5..0000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -[target.wasm32-unknown-unknown] -rustflags = ["-C", "target-feature=-bulk-memory"] diff --git a/Cargo.toml b/Cargo.toml index abd409d..e163116 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ resolver = "2" # Optimize for size (aggressive) [profile.release] -opt-level = "s" +opt-level = "z" lto = true codegen-units = 1 panic = "abort" diff --git a/frontend/index.html b/frontend/index.html index 0e00ea5..2ce83db 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -14,7 +14,7 @@ - +