This library reads the MaxMind DB format, including the GeoIP2 and GeoLite2 databases.
This project tracks Rust master. Previous releases are not currently supported.
To build everything:
make all check
Add this to your Cargo.toml
:
toml
[dependencies]
maxminddb = "0.1.7"
and this to your crate root:
rust
extern crate maxminddb;
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 Apache License, Version 2.0.