Skip to main content

register_plugin

Macro register_plugin 

Source
macro_rules! register_plugin {
    (manifest = $manifest:expr $(, $($tail:tt)*)?) => { ... };
}
Expand description

Generate hm_manifest + capability exports for a plugin.

§Example

register_plugin!(
    manifest = ...,
    executor = MyExec,
    hook     = MyHook,
);

// Order-independent: this is equivalent.
register_plugin!(
    manifest = ...,
    hook     = MyHook,
    executor = MyExec,
);