macro_rules! export_plugin {
($plugin:ty) => { ... };
}Expand description
Macro to export all required plugin functions
This macro generates the plugin_manifest, plugin_execute, plugin_alloc,
and plugin_dealloc functions required by the host.
§Example
ⓘ
struct MyPlugin;
impl Plugin for MyPlugin {
fn manifest() -> PluginManifest { /* ... */ }
fn execute(args: Vec<String>) -> ExecuteResult { /* ... */ }
}
export_plugin!(MyPlugin);