Add BrowserSession with shared entry env, mq_boot/mq_call exports, marqdo wasm build, and a counter page driven only by counter.mq.md. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
531 B
Markdown
20 lines
531 B
Markdown
# Marqdo browser WASM (route C)
|
|
|
|
Raw `cdylib` exports — no `wasm-bindgen` CLI required.
|
|
|
|
| Export | Role |
|
|
|--------|------|
|
|
| `mq_alloc` / `mq_dealloc` | linear memory |
|
|
| `mq_run` | one-shot `# main` (C1) |
|
|
| `mq_boot` / `mq_call` | session + handlers (C3) |
|
|
| `mq_version` | version C string |
|
|
|
|
```bash
|
|
# from repo root
|
|
marqdo wasm build -o examples/browser-hello
|
|
# or:
|
|
cargo build -p marqdo-wasm --target wasm32-unknown-unknown --release
|
|
```
|
|
|
|
See [doc/design/browser-marqdo-wasm.md](../../doc/design/browser-marqdo-wasm.md).
|