Skip to main content

run_plugin

Function run_plugin 

Source
pub fn run_plugin(plugin: PluginDefinition)
Expand description

Run a plugin’s main loop. Handles --meta-plugin-info and --meta-plugin-exec flags.

This replaces the boilerplate main() function in each plugin binary. Plugins only need to define their PluginInfo and an execute function.

Initializes env_logger so plugins can use log macros with RUST_LOG.