Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
libh3 - Wrapper for Uber’s H3 Hexagonal Hierarchical Spatial Index in Rust
This crate calls functions provided by Uber's H3 library to expose a safe Rust API for it.
Contributions are welcome, just do a pull request.
Quickstart
This refers to a Debian like sytem, please adopt to your needs. It will build Uber's H3 library during build step, otherwise the libh3 crate cannot link.
You may then dir into your project and build it using libh3 as dependency
Provide Own H3 Library
To provide your own H3 Library, you must set H3_INSTALL_PREFIX
as environment variable, so
libh3 can find it's header and static library.
You must then call cargo with feature flag uber_h3_from_scratch
disabled, e.g.:
Provided By Distribution
If you installed H3 via a package manager, it's likely installed to /usr
.
Set environment accordingly:
Self build
To build from sources do following steps:
Documentation
For further documentation have a look at https://docs.rs/libh3/
For the concepts behind the library refer to h3geo.org or the H3 blog