<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/user-attachments/assets/cee8376b-9812-40ff-91c6-2d53f9581b83">
<img src="https://github.com/user-attachments/assets/7ff2cda8-f564-4e70-a971-d34152f969f0" alt="MapLibre Logo" width="200">
</picture>
</p>
# mln-rs
[](https://github.com/maplibre/mln-rs/actions/workflows/ci.yml)
[](https://crates.io/crates/mln-rs)
[](https://docs.rs/mln-rs)
[](https://app.codecov.io/gh/maplibre/mln-rs)
[](https://slack.openstreetmap.us/)
An experimental [MapLibre](https://maplibre.org) map renderer written in Rust
([demo](https://maplibre.org/mln-rs)). It implements the
[MapLibre Style Spec](https://maplibre.org/maplibre-style-spec/) across native
platforms and the browser, usable as a Rust crate or through its
[C API](ffi/c/README.md).
## Getting Started
You need [rustup](https://rustup.rs) and [mise](https://mise.jdx.dev), which
installs the other tools and runs the dev tasks:
```sh
mise install # the tools that .config/mise/config.toml pins
mise run desktop # run the desktop demo app
mise run web:dev # serve the browser demo at http://localhost:5173/
mise run test # every test, including the render suite
```
`mise run desktop` and `mise run web:dev` default to the optimized `dev-opt`
profile with incremental compilation and debug checks. Use `--profile dev` for
unoptimized debugging or `--profile release` for shipping optimizations.
`mise tasks` lists every task.