Skip to main content

Crate zerolaunch_plugin_sdk_rust

Crate zerolaunch_plugin_sdk_rust 

Source
Expand description

ZeroLaunch Rust plugin SDK.

Provides a run() function that wraps a user’s Plugin trait implementation in a JSON-RPC 2.0 stdio loop, handling the LSP-style frame protocol and dispatching incoming requests.

§Usage

ⓘ
fn main() {
    zerolaunch_plugin_sdk_rust::run(MyPlugin::new())
}

Re-exports§

pub use host_proxy::HostProxy;
pub use runtime::host;
pub use runtime::run;
pub use runtime::PluginApp;
pub use trace::instrument;
pub use trace::span_for;
pub use trace::with_trace;

Modules§

host_proxy
HostProxy — 第三方插件调用 host/* API 的代理。
logging
插件日志系统。
runtime
第三方 Rust 插件的 JSON-RPC 运行时。
trace

Functions§

init
生成带当前插件命名空间前缀的翻译键(plugin.<当前插件id>.<key>)。
t_key