Web Playground
The browser playground lives in
web/. It loads
examples/basics.rk by
default, compiles in WASM when you click Compile, and shows AST,
HIR, MIR, emitted Rust/WAT, and run results from generated WASM.
Only validated WASM is executed; if WASM generation fails, Rust/graphs still
render and diagnostics are shown in the output panel.
From the repository root:
cd web
npm install
npm run build:wasm
npm run dev
Local routes match production layout:
npm run dev runs full mdBook + rustdoc staging once via predev, so
Docs and Rustdoc start from current local
artifacts. During dev, docs watcher updates run lightweight mdBook/theme sync
only (no rustdoc rebuild), so CSS/theme changes still stay in sync without
heavy rebuilds.
Run browser E2E tests (Chromium + Firefox):
cd web
npx playwright install chromium firefox
npm run test:e2e