#[plugin_impl]Expand description
Implement a plugin interface for a concrete type.
Generates extern āCā FFI shims, a static vtable, a plugin descriptor, and a plugin registry.
§Example
ā
pub struct MyGreeter;
#[plugin_impl(Greeter)]
impl Greeter for MyGreeter {
fn greet(&self, name: String) -> String {
format!("Hello, {name}!")
}
}