# Which game gets baked into wasm builds (WEB_BUNDLE in mrpci/src/main.rs). # It is a WorldBundle JSON, not a folder: the browser has no filesystem, and # `mrpci-headless --export-bundle` already writes exactly this document. # web/build.sh regenerates it and overrides the path per build. [env] MRPCI_WEB_BUNDLE = { value = "web/game.bundle.json", 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 mrpci_* exports are the page's game-loading bridge into the engine. [target.wasm32-unknown-unknown] rustflags = [ "-C", "link-arg=--allow-undefined", "-C", "link-arg=--export=mrpci_alloc", "-C", "link-arg=--export=mrpci_world_in", "-C", "link-arg=--export=mrpci_save_in", "-C", "link-arg=--export=mrpci_request_save", ]