Skip to main content

declare_plugin

Macro declare_plugin 

Source
macro_rules! declare_plugin {
    ($plugin_type:ty, $constructor:path) => { ... };
}
Expand description

Every native plugin crate must call this macro exactly once.

§Example

declare_plugin!(MyPlugin, MyPlugin::new);