macro_rules! export_component_plugin {
($plugin_type:ty) => { ... };
}Expand description
Macro to export a plugin as a WIT component
This generates the WIT component model exports for your plugin.
§Example
ⓘ
use nginx_lint_plugin::prelude::*;
#[derive(Default)]
struct MyPlugin;
impl Plugin for MyPlugin {
fn spec(&self) -> PluginSpec { /* ... */ }
fn check(&self, config: &Config, _path: &str) -> Vec<LintError> { /* ... */ }
}
export_component_plugin!(MyPlugin);