hush-plugin
Plugin SDK for writing custom Rust ops that load into hush-serve at runtime.
Quick Start
Create a cdylib crate:
# Cargo.toml
[]
= ["cdylib"]
[]
= "0.1"
Write your ops:
use ;
use Value;
hush_plugin!;
Reference from Python:
return # Python fallback
Op Signatures
- Regular op:
fn(&Value) -> Value - Generator op:
fn(&Value) -> Vec<Value>
The hush_plugin! macro auto-generates the C ABI exports and OpRegistry implementation.
License
Apache 2.0