mln-rs-plugin 0.0.22

Safe Rust SDK for writing MapLibre layer and source plugins
Documentation
  • Coverage
  • 26.57%
    233 out of 877 items documented0 out of 368 items with examples
  • Size
  • Source code size: 110.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • maplibre/mln-rs
    26 9 36
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • louwers

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.