{"id":17087610,"url":"https://github.com/oschwald/maxminddb-rust","last_synced_at":"2025-05-14T13:05:51.534Z","repository":{"id":16466053,"uuid":"19218139","full_name":"oschwald/maxminddb-rust","owner":"oschwald","description":"Rust MaxMind DB Reader","archived":false,"fork":false,"pushed_at":"2025-05-09T23:14:22.000Z","size":8889,"stargazers_count":226,"open_issues_count":2,"forks_count":54,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-10T00:24:41.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oschwald.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-04-27T21:26:43.000Z","updated_at":"2025-05-09T23:14:06.000Z","dependencies_parsed_at":"2024-01-10T03:32:03.342Z","dependency_job_id":"ad9fa6a8-8667-42d2-b94d-457e3c0494d6","html_url":"https://github.com/oschwald/maxminddb-rust","commit_stats":{"total_commits":302,"total_committers":28,"mean_commits":"10.785714285714286","dds":0.3112582781456954,"last_synced_commit":"469a660d5c5e1726cce901db738b029a019a01a2"},"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oschwald%2Fmaxminddb-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oschwald%2Fmaxminddb-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oschwald%2Fmaxminddb-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oschwald%2Fmaxminddb-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oschwald","download_url":"https://codeload.github.com/oschwald/maxminddb-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149944,"owners_count":22022851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T13:34:14.865Z","updated_at":"2025-05-14T13:05:51.498Z","avatar_url":"https://github.com/oschwald.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Rust MaxMind DB Reader #\n\n[![crates.io](\thttps://img.shields.io/crates/v/maxminddb.svg)](https://crates.io/crates/maxminddb) [![Released API docs](https://docs.rs/maxminddb/badge.svg)](http://docs.rs/maxminddb)\n\nThis library reads the MaxMind DB format, including the GeoIP2 and GeoLite2\ndatabases.\n\n## Building ##\n\nTo build everything:\n\n```\ncargo build\n```\n\n## Testing ##\n\nThis crate manages its test data within a git submodule.\nTo run the tests, you will first need to run the following command.\n\n```bash\ngit submodule update --init\n```\n\n## Usage ##\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nmaxminddb = \"0.17\"\n```\n\nand this to your crate root:\n\n```rust\nextern crate maxminddb;\n```\n\n## API Documentation ##\n\nThe API docs are on [Docs.rs](https://docs.rs/maxminddb/latest/maxminddb/struct.Reader.html).\n\n## Example ##\n\nSee [`examples/lookup.rs`](https://github.com/oschwald/maxminddb-rust/blob/main/examples/lookup.rs) for a basic example.\n\n## Benchmarks ##\n\nThe projects include benchmarks using [Criterion.rs](https://github.com/bheisler/criterion.rs).\n\nFirst you need to have a working copy of the GeoIP City database.\nYou can fetch it from [here](https://dev.maxmind.com/geoip/geoip2/geolite2/).\n\nPlace it in the root folder as `GeoIP2-City.mmdb`.\n\nOnce this is done, run\n\n```\ncargo bench\n```\n\nIf [gnuplot](http://www.gnuplot.info/) is installed, Criterion.rs can generate\nan HTML report displaying the results of the benchmark under\n`target/criterion/report/index.html`.\n\nResult of doing 100 random IP lookups:\n\n![](/assets/pdf_small.svg)\n\n## Contributing ##\n\nContributions welcome! Please fork the repository and open a pull request\nwith your changes.\n\n## License ##\n\nThis is free software, licensed under the ISC license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foschwald%2Fmaxminddb-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foschwald%2Fmaxminddb-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foschwald%2Fmaxminddb-rust/lists"}