feat(wasm): C0/C1 browser Marqdo interpreter on wasm32

Feature-gate host/CLI deps for wasm-core, add run_source, and ship
crates/marqdo-wasm with a raw mq_run ABI plus examples/browser-hello.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-01 10:37:44 +08:00
1 parent f2fd4fb34e
commit a75b7a1c87
22 files changed
+904 -151

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
# browser-hello(WASM C1)
在浏览器里跑 Marqdo `print`(路线 C)。
```bash
# 仓库根目录
cargo build -p marqdo-wasm --target wasm32-unknown-unknown --release
cp target/wasm32-unknown-unknown/release/marqdo_wasm.wasm examples/browser-hello/
cd examples/browser-hello
python3 -m http.server 8765
# 打开 http://127.0.0.1:8765/
```
- `loader.js` 仅为官方宿主桥(分配内存 / 调 `mq_run`),不是业务语言。
- 设计:[browser-marqdo-wasm.md](../../doc/design/browser-marqdo-wasm.md)