| 1 |
[package] |
| 2 |
name = "maxminddb" |
| 3 |
version = "0.30.0" |
| 4 |
authors = [ "Gregory J. Oschwald <[email protected]>" ] |
| 5 |
description = "Library for reading MaxMind DB format used by GeoIP2 and GeoLite2" |
| 6 |
readme = "README.md" |
| 7 |
keywords = ["MaxMind", "GeoIP2", "GeoIP", "geolocation", "ip"] |
| 8 |
categories = ["database", "network-programming"] |
| 9 |
homepage = "https://github.com/oschwald/maxminddb-rust" |
| 10 |
documentation = "https://docs.rs/maxminddb" |
| 11 |
repository = "https://github.com/oschwald/maxminddb-rust" |
| 12 |
license = "ISC" |
| 13 |
include = ["/Cargo.toml", "/benches/*.rs", "/src/**/*.rs", "/README.md", "/UPGRADING.md", "/LICENSE"] |
| 14 |
edition = "2021" |
| 15 |
|
| 16 |
[features] |
| 17 |
default = [] |
| 18 |
# SIMD-accelerated UTF-8 validation during string decoding |
| 19 |
simdutf8 = ["dep:simdutf8"] |
| 20 |
# Memory-mapped file access for better performance in long-running applications |
| 21 |
mmap = ["memmap2"] |
| 22 |
# Skip UTF-8 validation for trusted Rust-native string decoding |
| 23 |
# (mutually exclusive with simdutf8) |
| 24 |
unsafe-str-decode = [] |
| 25 |
|
| 26 |
[lib] |
| 27 |
name = "maxminddb" |
| 28 |
|
| 29 |
[dependencies] |
| 30 |
ipnetwork = "0.21.1" |
| 31 |
serde = { version = "1.0", features = ["derive"] } |
| 32 |
memchr = "2.4" |
| 33 |
memmap2 = { version = "0.9.0", optional = true } |
| 34 |
simdutf8 = { version = "0.1.5", optional = true } |
| 35 |
thiserror = "2.0" |
| 36 |
|
| 37 |
[dev-dependencies] |
| 38 |
env_logger = "0.11" |
| 39 |
criterion = "0.8" |
| 40 |
rayon = "1.5" |
| 41 |
serde_json = "1.0" |
| 42 |
|
| 43 |
[[bench]] |
| 44 |
name = "lookup" |
| 45 |
harness = false |
| 46 |
|
| 47 |
[[bench]] |
| 48 |
name = "serde_usage" |
| 49 |
harness = false |
| 50 |
|
| 51 |
[[bench]] |
| 52 |
name = "within" |
| 53 |
harness = false |
| 54 |
|
| 55 |
[[bench]] |
| 56 |
name = "metadata" |
| 57 |
harness = false |