mln-rs-plugin 0.0.23

Safe Rust SDK for writing MapLibre layer, source, and expression plugins
Documentation
  • Coverage
  • 29.39%
    278 out of 946 items documented0 out of 389 items with examples
  • Size
  • Source code size: 118.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.6 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, source, and expression function plugins (LayerPlugin, LayerInstance, SourcePlugin, ExpressionPlugin).

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, add_expression_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.