ip2geo
A small Rust library for getting the country code of IP addresses.
Usage
use ip2geo;
use IpAddr;
Note on performance
The library takes a few seconds to parse the embedded binary data. After that, each search takes almost no time.
Compilation instructions
First, download the databases:
Then, turn them into a compressed binary for embedding:
cd download
cargo run