Skip to main content

Module plugin

Module plugin 

Source
Expand description

Direct in-process host adapter for mln_plugin plugins.

Registers mln_plugin::LayerPlugin and mln_plugin::ExpressionPlugin directly on crate::RegistryBuilder without crossing the C Plugin ABI, enabling the same plugin crate to run natively, on Wasm, and over the C ABI (mln_plugin_c).

Functionsยง

build_layer_type
Validates and initializes a LayerPlugin into a reusable &'static DynamicLayerType.
with_view
Borrows an engine View as an mln_plugin::View for the duration of f (useful in plugin unit tests).