Skip to main content

lumen_plugin

Macro lumen_plugin 

Source
macro_rules! lumen_plugin {
    ($ctor:expr) => { ... };
}
Expand description

Export a RuntimePlugin from a cdylib crate.

Takes an expression that constructs the plugin; it runs once, when the engine initializes the module:

ⓘ
lumen_plugin::lumen_plugin!(MyPlugin::default);

The plugin crate must keep the default panic = "unwind"; see [init_entry] for why.