All Projects → IncSW → geoip2-rs

IncSW / geoip2-rs

Licence: MIT License
Fast GeoIP2 Reader for Rust

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to geoip2-rs

GeoIP2-ruby
Ruby API for GeoIP2 webservice client and database reader
Stars: ✭ 41 (+64%)
Mutual labels:  geoip2, geoip, maxmind
MaxMind-DB-Writer-perl
Create MaxMind DB database files
Stars: ✭ 63 (+152%)
Mutual labels:  geoip2, geoip, maxmind
mmdbwriter
Go library for writing MaxMind DB (mmdb) files
Stars: ✭ 44 (+76%)
Mutual labels:  geoip2, geoip, maxmind
nodejs-geoip2ws
Maxmind GeoIP2 Web Services for Node.js
Stars: ✭ 47 (+88%)
Mutual labels:  geoip2, geoip, maxmind
Geoip2 Php
PHP API for GeoIP2 webservice client and database reader
Stars: ✭ 1,956 (+7724%)
Mutual labels:  geoip2, geoip, maxmind
pf-azure-sentinel
Parse pfSense/OPNSense logs using Logstash, GeoIP tag entities, add additional context to logs, then send to Azure Sentinel for analysis.
Stars: ✭ 24 (-4%)
Mutual labels:  geoip, maxmind, maxmind-geoip
GeoIP2-perl
Perl API for MaxMind's GeoIP2 web services and databases
Stars: ✭ 18 (-28%)
Mutual labels:  geoip2, geoip, maxmind
MaxMind-DB-Reader-ruby
Ruby reader for the MaxMind DB Database Format
Stars: ✭ 35 (+40%)
Mutual labels:  geoip2, geoip, maxmind
MaxMind-DB-Reader-python
Python MaxMind DB reader extension
Stars: ✭ 131 (+424%)
Mutual labels:  geoip2, geoip, maxmind
geoip2
GeoIP2 Reader for Go
Stars: ✭ 54 (+116%)
Mutual labels:  geoip2, geoip, maxmind
MaxMind-DB-Reader-java
Java reader for the MaxMind DB format
Stars: ✭ 88 (+252%)
Mutual labels:  geoip2, geoip, maxmind
lua-resty-maxminddb
A Lua library for reading MaxMind's Geolocation database
Stars: ✭ 72 (+188%)
Mutual labels:  geoip, maxmind, maxmind-geoip
GeoLite2-City
GeoLite2-City.mmdb.gz CDN files based on Free Open Source CDN jsDelivr!
Stars: ✭ 170 (+580%)
Mutual labels:  geoip, maxmind
geoip
🌚 🌍 🌝 GeoIP 规则文件加强版,同时支持定制 V2Ray dat 格式路由规则文件 geoip.dat 和 MaxMind mmdb 格式文件 Country.mmdb。Enhanced edition of GeoIP files for V2Ray, Xray-core, Trojan-Go, Clash and Leaf, with replaced CN IPv4 CIDR available from ipip.net, appended CIDR lists and more.
Stars: ✭ 524 (+1996%)
Mutual labels:  geoip, maxmind-geoip
GeoIP2-CN
小巧精悍、准确、实用 GeoIP2 数据库
Stars: ✭ 3,965 (+15760%)
Mutual labels:  geoip2, geoip
clickhouse-maxmind-geoip
A demonstration how to use ClickHouse with MaxMind GeoIP2 databases for geolocaiton
Stars: ✭ 82 (+228%)
Mutual labels:  maxmind, maxmind-geoip
sawmill
Sawmill is a JSON transformation Java library
Stars: ✭ 92 (+268%)
Mutual labels:  geoip, maxmind
ZfSnapGeoip
Maxmind Geoip module for Zend Framework 2
Stars: ✭ 15 (-40%)
Mutual labels:  geoip, maxmind-geoip
GeoLite2-Country
GeoLite2-Country.mmdb.gz CDN files based on Free Open Source CDN jsDelivr!
Stars: ✭ 69 (+176%)
Mutual labels:  geoip, maxmind
locus
MMDB reader for geolocation and ASN lookup of IP addresses
Stars: ✭ 93 (+272%)
Mutual labels:  geoip2, geoip

GeoIP2 Reader for Rust

This library reads MaxMind GeoIP2 databases

Build Status Software License Downloads

crates.io Documentation Dependency Status

Usage

[dependencies]
geoip2 = "0.1.6"

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

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].