This folder is a starter template for building OpenVCS plugins.
It includes a single WASI/Rust module (src/main.rs) that prints a message when the plugin starts.
From PluginTemplate/, run:
cargo openvcs distThis bundles the plugin into dist/*.ovcsp.
If cargo openvcs is not installed, you can run the SDK packager directly:
cargo run --manifest-path ../OpenVCS-SDK/Cargo.toml --bin openvcs-plugin -- --plugin-dir PluginTemplate --out PluginTemplate/distNotes:
- These plugins build for
wasm32-wasip1. If needed:rustup target add wasm32-wasip1.
- When enabled/loaded, it logs one line:
Hello, World from PluginTemplate!
openvcs.plugin.json: Plugin manifest (id + module exec).Cargo.toml,src/main.rs: Rust/WASI module executable.
- Pick a new plugin id (example:
com.yourname.my-plugin). - Update these in sync:
PluginTemplate/openvcs.plugin.json(id, and any file names you change)PluginTemplate/src/main.rs(the startup message and any method names you add)
- If you rename the module executable, update:
PluginTemplate/openvcs.plugin.json→module.execPluginTemplate/Cargo.toml→[[bin]].name