zerolaunch-plugin-sdk-rust
Rust SDK for writing ZeroLaunch third-party plugins.
Usage
use async_trait;
use run;
use *;
;
What the SDK does
- Reads LSP-framed JSON-RPC messages from stdin
- Dispatches
plugin/*methods to yourPlugintrait implementation - Writes JSON-RPC responses to stdout
- Handles
plugin/initialize,plugin/get_components,plugin/query,plugin/execute_action,plugin/get_settings,plugin/apply_settings,plugin/validate_settings,plugin/config_actions,plugin/execute_config_action
HostProxy
For calling host-side APIs from your plugin:
use HostProxy;
let host = new;
host.log?;
host.shell_open?;