Files
marqdo/plugins/web/README.md
cflmy 9331af78e2 release(2.8.0): 合入 CHANGELOG/README/发版说明/skills prove 任务;CI 链接指向 doc/releases
- CHANGELOG.md:v2.8.0 条目(中英双语);
- README.md:版本行 2.7.1→2.8.0 + 愿景第 6 条(知识可证明);
- doc/releases/v2.8.0.md:双语发版说明(亮点/用法/已知限制);
- skills/marqdo-dev/index.mq.md:新增 prove 任务(路径/目录模式/
  require_lean/json;参数用 + 行声明升参,check 与 narrative-ratio 通过);
- 设计文档 §12.5 标记已合入;发版链接统一指向 doc/releases/v2.8.0.md。
2026-11-18 10:29:26 +08:00

1.0 KiB
Executable File
Raw Permalink Blame History

Marqdo plugins/web — Go (C ABI v2)

施工图:doc/design/ext-web-go-rewrite.md · ADR:0004

Default native web plugin (W-G13). plugin.native_path name=web resolves plugins/web/build/libweb.so (and copies under target/{debug,release}/).

Build

./scripts/build-web-plugin.sh
# → plugins/web/build/libweb.so
# → also copied to target/debug|release/libweb.so

Requires Go 1.22+ with cgo (CGO_ENABLED=1) and a C toolchain.

Override path: export MARQDO_WEB_PLUGIN=$PWD/plugins/web/build/libweb.so

Layout

Path Role
plugin.go / abi_*.go //export ABI entry + registration
abi/marqdo_abi_cgo.h C contract for cgo
internal/* page / db / http / ws / …

The legacy Rust implementation was archived during v1.6 and then removed from the working tree (it remains in git history before commit <this commit>); see CHANGELOG.md “默认 libweb 为 Go”。