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.
This commit is contained in:
sapphi-red committed 2026-09-29 08:01:49 +00:00
1 parent feee05dcdd
commit 29e8c0cf81
1 file changed
+6
+6
View File
@@ -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.