Files
marqdo/crates/marqdo-wasm
cflmyandCursor 1730f26fc7 release: v2.2.0 call one function in any .mq.md
The same page is the document, the knowledge and the program. marqdo call runs that function with arguments, so reuse, tools and tests do not need a second skill system.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-30 09:07:23 +08:00
..

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
# from repo root (C5 size profile)
marqdo wasm build -o examples/browser-hello
# or:
cargo build -p marqdo-wasm --target wasm32-unknown-unknown --profile release-wasm

Prints size in KiB; runs wasm-opt -Oz when Binaryen is on PATH.

See doc/design/browser-marqdo-wasm.md.