This library reads the MaxMind DB format, including the GeoIP2 and GeoLite2 databases.
To build everything:
make all check
Add this to your Cargo.toml
:
[dependencies]
maxminddb = "0.7.0"
and this to your crate root:
extern crate maxminddb;
The API docs are on GitHub Pages.
See example/lookup.rs
for a basic example.
Contributions welcome! Please fork the repository and open a pull request with your changes.
This is free software, licensed under the ISC license.