From 29e8c0cf81d3437e1a84181b312ba9a8e2629eab Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Tue, 29 Sep 2026 08:01:48 +0000 Subject: [PATCH] perf(napi): enable Wasm 128bit SIMD Extension (#27179) This was enabled in Rolldown (https://github.com/rolldown/rolldown/pull/4484), but wasn't enabled here. Technically this is a breaking change as this will make the wasm not run in older browsers, but I think it's fine. I noticed this because this was pointed out in https://x.com/_pi0_/status/2104617588550705201. --- .cargo/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index cade1c2ebd..25fa3ba238 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -21,6 +21,12 @@ rustflags = ["-C", "target-feature=+crt-static"] [target.aarch64-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static"] +[target.wasm32-wasip1] +rustflags = ["-C", "target-feature=+simd128"] + +[target.wasm32-wasip1-threads] +rustflags = ["-C", "target-feature=+simd128"] + [target.'cfg(target_os = "windows")'] rustflags = [ # Disables linking against the default Universal C Runtime (libucrt.lib). This prevents conflicts if another CRT library is linked manually.