Macro declare_plugin

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

Declare a plugin type and its constructor.

ยงNotes

This works by automatically generating an extern "C" function with a pre-defined signature and symbol name. Therefore you will only be able to declare one plugin per library.