From 90d8142855cb8d22573ea2e5efb2a79f8cba73bd Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Tue, 29 Jul 2025 18:25:53 -0500 Subject: [PATCH] Use `wasm-server-runner` as the WASM runner This way I can `cargo run --target ...` and Cargo will spawn a dummy webserver instead of attempting to execute the WASM file on my x86/arm CPU. --- .cargo/config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index dc0beed..06cb150 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,3 +1,4 @@ [target.wasm32-unknown-unknown] +runner = "wasm-server-runner" rustflags = ["--cfg", "getrandom_backend=\"wasm_js\""]