# Which game folder gets baked into wasm builds (embedded_world in main.rs).
# Override per build: MRPGI_WEB_GAME=/abs/path ./web/build.sh
does it.
[env]
MRPGI_WEB_GAME = { value = "games/lost-fuse", relative = true }
# Web builds: miniquad's JS imports (console_log, init_webgl, ...) are
# resolved at runtime by web/mq_js_bundle.js — tell the linker to allow them.
# The mrpgi_* exports are the page's save/load bridge into the engine.
[target.wasm32-unknown-unknown]
rustflags = [
"-C", "link-arg=--allow-undefined",
"-C", "link-arg=--export=mrpgi_alloc",
"-C", "link-arg=--export=mrpgi_world_in",
"-C", "link-arg=--export=mrpgi_request_save",
"-C", "link-arg=--export=mrpgi_save_pending",
]