31 releases

0.10.0 Aug 8, 2018
0.9.0 Feb 17, 2018
0.8.1 Jul 2, 2017
0.7.1 Nov 14, 2016
0.1.0 Nov 22, 2014

#32 in Database interfaces

Download history 26/week @ 2018-05-16 94/week @ 2018-05-23 263/week @ 2018-05-30 37/week @ 2018-06-06 161/week @ 2018-06-13 39/week @ 2018-06-20 195/week @ 2018-06-27 116/week @ 2018-07-04 57/week @ 2018-07-11 118/week @ 2018-07-18 130/week @ 2018-07-25 212/week @ 2018-08-01 531/week @ 2018-08-08

659 downloads per month

Rust MaxMind DB Reader

Build Status crates.io Released API docs Master API docs

This library reads the MaxMind DB format, including the GeoIP2 and GeoLite2 databases.

Building

To build everything:

cargo build

Testing

This crate manages its test data within a git submodule. To run the tests, you will first need to run the following command.

git submodule update --init

Usage

Add this to your Cargo.toml:

[dependencies]
maxminddb = "0.8.1"

and this to your crate root:

extern crate maxminddb;

API Documentation

The API docs are on GitHub Pages.

Example

See examples/lookup.rs for a basic example.

Contributing

Contributions welcome! Please fork the repository and open a pull request with your changes.

License

This is free software, licensed under the ISC license.

ISC license

Dependencies

Reverse deps