From 7408f056f65ed080eb5176f7a664bee1799cac7c Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Tue, 28 Oct 2025 15:00:28 -0500 Subject: [PATCH] Fix: use correct name suffix for the WASM file Maybe I should have spent more time manually running each of the steps. Eh, whatever. Bug found and fixed. --- makefile_web | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makefile_web b/makefile_web index 4a4744c8..370d9c67 100644 --- a/makefile_web +++ b/makefile_web @@ -3,11 +3,11 @@ SRCS := $(wildcard $(SRC_DIR)/**) .PHONY: clean full-clean web tarball -web: out/boids.js out/boids.wasm out/index.html +web: out/boids.js out/boids_bg.wasm out/index.html tarball: boids_web_root.tar -boids_web_root.tar: out/boids.js out/boids.wasm out/index.html +boids_web_root.tar: out/boids.js out/boids_bg.wasm out/index.html tar -caf $@ $< target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm: $(SRCS) @@ -18,7 +18,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: target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm | out +out/boids.js out/boids_bg.wasm: target/wasm32-unknown-unknown/wasm-release/another-boids-in-rust.wasm | out 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