geoip2 0.1.0

Library for reading MaxMind DB format used by GeoIP2 and GeoLite2
Documentation

Build Status Software License Downloads

crates.io Documentation Dependency Status

Usage

[dependencies]
geoip2 = "0.1.0"

See examples/lookup.rs for a basic example.

Performance

cargo 1.56.0-nightly, Intel i7-7700, Debian 9.1

IncSW/geoip2-rs

city      1,189 ns/iter (+/- 73)
country     553 ns/iter (+/- 43)

oschwald/maxminddb-rust

city      4,224 ns/iter (+/- 153)
country   2,311 ns/iter (+/- 75)

License

MIT License.