Skip to main content

export

Macro export 

Source
macro_rules! export {
    ($name:literal, $plugin:ty) => { ... };
}
Expand description

Export a Plugin as the component’s plugin resource when the crate is built for wasm32: the resource’s new deserializes the options string into Plugin::Options and calls Plugin::new, and its classify and mutate call the instance. Built for anything else it exposes its name and constructor as DIFFR_PLUGIN for the host registry.