MRPGI/mrpgi/Cargo.toml
type-two 11d25f5c52 Browser build: the engine compiles to WASM and runs at a URL
- mrpgi-core: ureq/tiny_http/threads are native-only deps; the AI lane
  compiles to an always-off stub on wasm32 (deterministic parser stays).
- World::from_memory + assets::cel_from_bytes — boot a game with no
  filesystem.
- mrpgi GUI on wasm: embeds games/lost-fuse via include_dir, boots
  straight into Play (Tab still opens the editor; saving needs a disk,
  so web is play + paint-only for now).
- web/: index.html shell + macroquad JS loader + build.sh producing a
  self-contained static web/dist (1.1 MB total, game included).
- .cargo/config.toml: --allow-undefined for miniquad's JS imports.

Verified in-browser: renders, typed commands reach the parser,
click-to-walk works, zero console errors.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 09:35:45 +10:00

15 lines
417 B
TOML

[package]
name = "mrpgi"
version = "0.1.0"
edition = "2021"
description = "Monster Robot Party Game Interpreter — macroquad GUI front-end (play + paint) over mrpgi-core."
[dependencies]
mrpgi-core = { path = "../mrpgi-core" }
macroquad = "0.4"
# Browser builds bake a game folder into the binary (no filesystem on the web).
[target.'cfg(target_arch = "wasm32")'.dependencies]
include_dir = "0.7"
serde_json = "1"