maplibre-native-next
A Rust port of the MapLibre Native core. Start with PLAN.md;
working rules are in PORTING.md. The differential tests
against the C++ core (//difftest/<area> in the docs and comments) are in
mln-rs-difftests, which tests
the released crates.
The tasks are in the justfile (just lists them; install
just with cargo install just or
your package manager):
# uploads it to Codecov)
# The GLFW app: OpenFreeMap Liberty in a window (needs a display and the
# system GLFW; wgpu picks Vulkan on Linux and Metal on macOS).
The render suite writes its report and the actual and diff images to
target/tmp/render_tests/. cargo run -p mln-rs-render-test -- --help
runs the runner itself, e.g. with a --filter.
Test data
The tests read files of the C++ repository (fixtures, the render, query
and expression suites, the style spec) from copies in this repository:
each package's testdata/ holds the files its tests read, at their paths
in maplibre-native. They were copied from
louwers/maplibre-native@4e03abe
(maplibre/maplibre-native 8e144d0 plus build changes), under its licenses.
just update-testdata [checkout] copies them again from a maplibre-native
checkout (by default ../maplibre-native); the render, query and expression
suites are copied whole, so new tests come along.
The GPU tests need an adapter: Metal on macOS, Vulkan on Linux (without a
GPU, lavapipe through VK_DRIVER_FILES). On NixOS, the justfile runs the
tests and the apps inside the C++ repo's #linux dev shell.
CI runs the justfile's ci-* recipes: just ci-lint checks the
formatting, and runs clippy and rustdoc with warnings as errors.