plugin!() { /* proc-macro */ }Expand description
Set up bindings and export a plugin implementation.
Expands to wit_bindgen::generate! with the embedded WIT and export!.
No local WIT file needed in the plugin project.
§Example
ⓘ
cha_plugin_sdk::plugin!(MyPlugin);
struct MyPlugin;
impl Guest for MyPlugin {
fn name() -> String { "my-plugin".into() }
fn analyze(input: AnalysisInput) -> Vec<Finding> { vec![] }
}