Files
marqdo/tests/lib/plugin-demo.mq.md
T
cflmyandCursor b0c777c480 Add versioned C ABI for optional native plugins.
Load .dll/.so/.dylib at runtime via libloading, register JSON-wired functions, and ship a Rust cdylib demo with lib/plugin wrappers and gold coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 12:45:18 +08:00

324 B


title: plugin demo ABI description: Loads demo cdylib; path from MARQDO_TEST_PLUGIN (set by gold harness).

lib/plugin.mq.md lib/sys.mq.md


main

*p = > env_get name=MARQDO_TEST_PLUGIN *

load path=p

*sum = > demo_add a=1 b=2 *

print text=sum

*echo = > demo_echo text=ok *

print text=echo