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>
This commit is contained in:
cflmyandCursor committed 2026-08-06 12:45:18 +08:00
1 parent b00b018056
commit b0c777c480
26 files changed
+903 -26

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
---
title: lib/plugin
description: Load optional native ABI plugins (.dll / .so / .dylib)
---
## load
- path
**> host_plugin_load path=`path`**
## unload
**> host_plugin_unload**
## list
**> host_plugin_list**
+17
View File
@@ -0,0 +1,17 @@
---
title: lib/插件
description: 加载可选原生 ABI 插件(.dll / .so / .dylib)
---
## 加载
- 路径
**> host_plugin_load path=`路径`**
## 卸载
**> host_plugin_unload**
## 列出
**> host_plugin_list**