coip-reader 0.2.0

High-performance read-only reader for COI (.coi) columnar IP databases with projection, LRU caching, and serde support
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.85"
name = "coip-reader"
version = "0.2.0"
authors = ["coip contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance read-only reader for COI (.coi) columnar IP databases with projection, LRU caching, and serde support"
homepage = "https://github.com/netkn001/coip"
documentation = "https://docs.rs/coip-reader"
readme = "README.md"
keywords = [
    "ip",
    "geoip",
    "mmdb",
    "columnar",
    "database",
]
categories = [
    "database-implementations",
    "encoding",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/netkn001/coip"
resolver = "2"

[features]
default = [
    "mmap",
    "serde",
]
mmap = ["dep:memmap2"]
serde = ["dep:serde"]
zstd-c = ["dep:zstd"]

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

[[example]]
name = "basic_lookup"
path = "examples/basic_lookup.rs"
required-features = ["serde"]

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

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

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

[dependencies.coip-format]
version = "0.2.0"

[dependencies.lru]
version = "0.12"

[dependencies.lz4_flex]
version = "0.11"

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

[dependencies.ruzstd]
version = "0.8"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.zstd]
version = "0.13"
optional = true

[dev-dependencies.coip-builder]
version = "0.2.0"

[dev-dependencies.serde]
version = "1"
features = [
    "derive",
    "derive",
]