Files
marqdo/plugins/web/README.md
T
cflmyandCursor ca40c698a2 refactor(web): start Go ABI rewrite of plugins/web (W-G0)
Archive the Rust web plugin and add a Go c-shared skeleton with ABI v2
bridge, build script, design doc/ADR, and smoke test so multi-language
plugins and full web parity can proceed wave by wave.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 14:47:43 +08:00

24 lines
714 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Marqdo `plugins/web` — Go (C ABI v2)
施工图:[doc/design/ext-web-go-rewrite.md](../../doc/design/ext-web-go-rewrite.md) · ADR:[0004](../../doc/adr/0004-web-plugin-go.md)
## Build
```bash
./scripts/build-web-plugin.sh
# → plugins/web/build/libweb.so (also copied to target/debug|release)
export MARQDO_WEB_PLUGIN=$PWD/plugins/web/build/libweb.so
```
Requires **Go 1.22+** with cgo (`CGO_ENABLED=1`) and a C toolchain.
## Layout
| Path | Role |
|------|------|
| `plugin.go` | `//export` ABI entry + registration |
| `abi/marqdo_abi.h` | C contract (from `include/`) |
| `internal/*` | page / db / http / ws / … |
迁移期 Rust 参考实现:`plugins/web-rust-archive/`(勿再演进)。