Expand description
Plugin factory: how folk-builder’s generated main.rs constructs each plugin.
The convention is: every plugin crate exports
ⓘ
pub fn folk_plugin_factory() -> Box<dyn folk_api::PluginFactory> {
Box::new(MyPluginFactory)
}The builder calls crate_name::folk_plugin_factory() for each plugin
and registers the result. There is no other naming convention; the
function name is fixed.
Traits§
- Plugin
Factory - Constructs a
Pluginfrom runtime configuration.