From 3c0cf85da5206c44ec1353745a3e0d761980508a Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Tue, 28 Oct 2025 12:42:44 -0500 Subject: [PATCH] Drop extra suffix in wasm-bindgen output name Oops, it's not supposed to have a file suffix! It's a bit annoying that it still produces both a WASM and JS file, just not the right ones (and no _bg.wasm at all). Especially without any warning that it is doing something different than normal. Oh well. --- makefile_web | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile_web b/makefile_web index 4175e028..3ecc5b92 100644 --- a/makefile_web +++ b/makefile_web @@ -16,7 +16,7 @@ out: # Both the JS and WASM files are generated by the wasm-bindgen call, so both # get to be on the target half of this recipe. out/boids.js out/boids.wasm: out target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm - wasm-bindgen --no-typescript --target web --out-dir ./out/ --out-name boids.wasm target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm + wasm-bindgen --no-typescript --target web --out-dir ./out/ --out-name boids target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm out/index.html: www/index.html cp -a $< $@