libmaxminddb-rs 0.1.0

Pure Rust MaxMind DB (MMDB) reader and writer with zero-copy borrowed decoding
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.90"
name = "libmaxminddb-rs"
version = "0.1.0"
build = false
include = [
    "Cargo.toml",
    "README.crates.md",
    "LICENSE",
    "LICENSE-MIT",
    "LICENSE-APACHE",
    "src/**",
    "benches/**",
    "examples/**",
    "tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust MaxMind DB (MMDB) reader and writer with zero-copy borrowed decoding"
homepage = "https://github.com/0x00F6/libmaxminddb-rs"
documentation = "https://docs.rs/libmaxminddb-rs"
readme = "README.crates.md"
keywords = [
    "maxmind",
    "mmdb",
    "geoip",
    "ip",
    "database",
]
categories = [
    "database",
    "network-programming",
    "encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/0x00F6/libmaxminddb-rs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = [
    "reader",
    "writer",
    "derive",
    "simd",
]
derive = ["dep:libmaxminddb-rs-derive"]
reader = ["dep:memmap2"]
simd = []
writer = []

[lib]
name = "libmaxminddb_rs"
path = "src/lib.rs"

[[example]]
name = "concurrent_lookups"
path = "examples/concurrent_lookups.rs"
required-features = [
    "reader",
    "writer",
    "derive",
]

[[example]]
name = "custom_database"
path = "examples/custom_database.rs"
required-features = [
    "reader",
    "writer",
    "derive",
]

[[example]]
name = "custom_record"
path = "examples/custom_record.rs"
required-features = [
    "reader",
    "writer",
    "derive",
]

[[example]]
name = "deep_merge"
path = "examples/deep_merge.rs"
required-features = [
    "reader",
    "writer",
]

[[example]]
name = "fast_ip_lookup"
path = "examples/fast_ip_lookup.rs"
required-features = [
    "reader",
    "writer",
    "derive",
]

[[example]]
name = "generate_compat_db"
path = "examples/generate_compat_db.rs"
required-features = ["writer"]

[[example]]
name = "inspect_meta"
path = "examples/inspect_meta.rs"

[[example]]
name = "lookup_exists"
path = "examples/lookup_exists.rs"
required-features = [
    "reader",
    "writer",
    "derive",
]

[[example]]
name = "lookup_many"
path = "examples/lookup_many.rs"
required-features = [
    "reader",
    "writer",
    "derive",
]

[[example]]
name = "lookup_with_copy"
path = "examples/lookup_with_copy.rs"
required-features = [
    "reader",
    "writer",
    "derive",
]

[[example]]
name = "metadata"
path = "examples/metadata.rs"
required-features = [
    "reader",
    "writer",
]

[[example]]
name = "quickstart"
path = "examples/quickstart.rs"
required-features = [
    "reader",
    "writer",
    "derive",
]

[[example]]
name = "read_write"
path = "examples/read_write.rs"
required-features = [
    "reader",
    "writer",
    "derive",
]

[[example]]
name = "zero_copy_lookup"
path = "examples/zero_copy_lookup.rs"
required-features = [
    "reader",
    "writer",
    "derive",
]

[[test]]
name = "compatibility"
path = "tests/compatibility.rs"

[[test]]
name = "data_types"
path = "tests/data_types.rs"

[[test]]
name = "features"
path = "tests/features.rs"

[[test]]
name = "micro_benchmark_fixtures"
path = "tests/micro_benchmark_fixtures.rs"

[[test]]
name = "record_sizes"
path = "tests/record_sizes.rs"

[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"

[[bench]]
name = "flamegraph"
path = "benches/flamegraph.rs"
harness = false
required-features = [
    "reader",
    "writer",
    "derive",
]

[[bench]]
name = "ipv6_regression"
path = "benches/ipv6_regression.rs"
harness = false
required-features = [
    "reader",
    "writer",
]

[[bench]]
name = "lookup_borrowed"
path = "benches/lookup_borrowed.rs"
harness = false
required-features = [
    "reader",
    "derive",
]

[[bench]]
name = "million_reader"
path = "benches/million_reader.rs"
harness = false
required-features = [
    "reader",
    "writer",
    "derive",
]

[[bench]]
name = "reader"
path = "benches/reader.rs"
harness = false
required-features = [
    "reader",
    "derive",
]

[[bench]]
name = "replay_value"
path = "benches/replay_value.rs"
harness = false
required-features = ["reader"]

[[bench]]
name = "search_strategies"
path = "benches/search_strategies.rs"
harness = false
required-features = [
    "reader",
    "writer",
    "derive",
]

[[bench]]
name = "writer"
path = "benches/writer.rs"
harness = false
required-features = [
    "writer",
    "derive",
]

[dependencies.ipnet]
version = "2.11.0"
features = ["serde"]

[dependencies.libmaxminddb-rs-derive]
version = "0.1.0"
optional = true

[dependencies.memmap2]
version = "0.9.8"
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.145"

[dependencies.thiserror]
version = "2.0.16"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.libc]
version = "0.2"

[dev-dependencies.pprof]
version = "0.15.0"
features = ["flamegraph"]

[dev-dependencies.serde_bytes]
version = "0.11.19"

[dev-dependencies.tempfile]
version = "3.23.0"

[profile.bench]
debug = 2