This library reads MaxMind GeoIP2 databases
[](https://github.com/IncSW/geoip2/actions) [](LICENSE)  [](https://crates.io/crates/geoip2) [](https://docs.rs/geoip2/0.1.2) [](https://deps.rs/crate/geoip2/0.1.2)toml
[dependencies]
geoip2 = "0.1.2"
See examples/lookup.rs for a basic example.
cargo 1.56.0-nightly, Intel i7-7700, Debian 9.1
city 1,139 ns/iter (+/- 47)
country 549 ns/iter (+/- 20)
city 4,224 ns/iter (+/- 153)
country 2,270 ns/iter (+/- 158)