This library reads MaxMind GeoIP2 databases.
toml
[dependencies]
geoip2 = "0.0.1"
See examples/lookup.rs for a basic example.
cargo 1.56.0-nightly, Intel i7-7700
city 1,189 ns/iter (+/- 73)
country 553 ns/iter (+/- 43)
city 4,224 ns/iter (+/- 153)
country 2,311 ns/iter (+/- 75)