geoip2-awdb

Crates.iogeoip2-awdb
lib.rsgeoip2-awdb
version0.2.0
created_at2025-07-17 02:59:50.802138+00
updated_at2025-07-17 04:38:55.039807+00
descriptionLibrary for reading MaxMind DB format used by GeoIP2 and GeoLite2. Add ability for reading Awdb
homepagehttps://github.com/lizunmvn/geoip2-rs-awdb
repositoryhttps://github.com/lizunmvn/geoip2-rs-awdb
max_upload_size
id1757014
size59,218
(CTST-113)

documentation

https://docs.rs/geoip2-awdb

README

GeoIP2 Reader for Rust

This library reads MaxMind GeoIP2 databases

Software License Downloads

New Ability

Add ability to read .awdb

Usage

[dependencies]
geoip2-awdb = "0.2.0"

See examples/lookup.rs for a basic example.

Benchmarks

Benchmarks required nightly Rust.

Place GeoIP2-Country.mmdb and GeoIP2-City.mmdb in the testdata folder, then run:

cargo bench

Same as '.awdb' file

Tested on paid DB on cargo 1.56.0-nightly, Intel i7-7700, Debian 9.1.

IncSW/geoip2-rs

default

city      2,175 ns/iter (+/- 124)
country   1,123 ns/iter (+/- 111)

unsafe-str

city      1,113 ns/iter (+/- 76)
country     524 ns/iter (+/- 31)

oschwald/maxminddb-rust.

default

city      4,224 ns/iter (+/- 153)
country   2,270 ns/iter (+/- 158)

unsafe-str-decode

city      3,266 ns/iter (+/- 191)
country   1,802 ns/iter (+/- 75)

License

MIT License.

Commit count: 0

cargo fmt