Files
ShowenV2/plugins
XiuChengWu e112b2e8b7 chore: add Cargo.toml metadata (description, license, rust-version)
- All crates: rust-version = 1.70, license = MIT
- Root + example-plugin: publish = false (not intended for crates.io)
- plugin-sdk: proper description for potential future publication
2026-03-31 23:26:17 +08:00
..

plugins/ — 外部动态插件

此目录存放独立编译的动态插件项目cdylib crate

目录

目录 说明
example-plugin/ 示例插件,演示 SDK 用法

开发流程

  1. 创建新 crate依赖 showen-plugin-sdk
  2. 实现 ShowenPlugin trait
  3. export_plugin! 宏导出
  4. cargo build --release 编译为 .so
  5. 将产物放入 plugin_store/<id>/<version>/

详见 plugin-sdk/README.md