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.
This commit is contained in:
2025-10-28 12:42:44 -05:00
parent 39925b0c4e
commit 3c0cf85da5

View File

@@ -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 $< $@