macro_rules! register_plugin {
($plugin_type:ty) => { ... };
}Expand description
Registers a struct as the Plugin entry point.
This macro generates the necessary boilerplate to export the WASM component functions expected by the Hydrust host.
§Requirements
The type passed to this macro must:
- Implement the
Handlertrait. - Implement
Default(or define a zero-argumentnewvia#[derive(Default)]).
§Example
ⓘ
register_plugin!(MyPlugin);