maplibre_native-0.1.0 has been yanked.
Visit the last successful build:
maplibre_native-0.4.1
MapLibre-native-rs
Rust bindings to the MapLibre Native map rendering engine.
Usage
In order to compile, you must have the following dependencies (linux). No other system has been tested yet (PRs welcome). See the .github/workflows/ci.yml for the full list of dependencies.
ccacheCMake+Ninja
Apt Packages
build-esentiallibcurl4-openssl-devlibuv1-devlibjpeg-devlibpng-devlibglfw3-devlibwebp-devlibopengl0mesa-vulkan-drivers
Development
- This project is easier to develop with just, a modern alternative to
make. Install it withcargo install just. - To get a list of available commands, run
just. - To run tests, use
just test.
Compiling MapLibre Native
This crate relies on the MapLibre Native library, which is compiled as part of the build process. There are several ways to compile the library:
- if the
MLN_FROM_SOURCEenvironment variable is set, the build script will compile the native library from that dir. - if this repo has been cloned, it will contain the
/maplibre-nativesubmodule, which will be used to compile the library. Make sure to rungit submodule update --init --recursiveto fetch the submodule. - if there is no
/maplibre-nativesubmodule, the build script assumes it is being ran as a dependency, and will try to download the source into theOUT_DIR. Note that this might be slow.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.