macro_rules! export_static {
(
params: $params:ty,
info: $info:expr,
bus_layouts: [$($layout:expr),* $(,)?],
logic: $logic:ty,
editor: { $($editor_body:tt)* },
) => { ... };
}Expand description
Compile-time static embedding of a PluginLogic type.
Produces a __HotShellWrapper struct that implements Plugin + PluginExport,
so format export macros (export_clap!, export_vst3!, etc.) work unchanged.
No dlopen, no file watcher, zero runtime overhead.
ⓘ
export_static! {
params: GainParams,
info: plugin_info!(...),
bus_layouts: [BusLayout::stereo()],
logic: Gain,
}
#[cfg(feature = "clap")]
truce_clap::export_clap!(__HotShellWrapper);