mln-rs-plugin
Safe, host-agnostic Rust SDK for writing MapLibre layer and source plugins
(LayerPlugin, LayerInstance, SourcePlugin).
A plugin crate written against mln_plugin has zero dependencies on
mln_engine, mln_style, mln_gfx, or mln_c, and can be registered either:
- directly in-process into
mln_engine::RegistryBuilder(add_layer_plugin/add_source_plugin) on native and Wasm targets, or - over the MapLibre Native C Plugin ABI via
mln_plugin_c::RegistryBuilder.
On Wasm (wasm32-unknown-unknown), compiled Rust plugins link into the app's
.wasm module through mln_engine::RegistryBuilder (or static-linked
mln_plugin_c); separately compiled .wasm plugin modules require an external
JS bridge across linear memories.