netindex 3.0.1

Immutable IP-range and ASN indexes with borrowed payloads
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.95"
name = "netindex"
version = "3.0.1"
build = false
exclude = ["/benches/results/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Immutable IP-range and ASN indexes with borrowed payloads"
readme = "README.md"
keywords = [
    "ip",
    "cidr",
    "asn",
    "index",
]
categories = [
    "data-structures",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/0xARYA/netindex"

[package.metadata.docs.rs]
all-features = true

[features]
codec = ["shared-values"]
external-sort = ["dep:tempfile"]
mmap = ["dep:memmap2"]
mmdb = ["dep:maxminddb"]
shared-values = []
simd = ["simd-utf8"]
simd-utf8 = ["dep:simdutf8"]

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

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

[[example]]
name = "dedup"
path = "examples/dedup.rs"
required-features = ["external-sort"]

[[example]]
name = "rebuild"
path = "examples/rebuild.rs"
required-features = [
    "external-sort",
    "mmap",
]

[[example]]
name = "reference_lookup"
path = "examples/reference_lookup.rs"
required-features = ["mmap"]

[[example]]
name = "share_aliases"
path = "examples/share_aliases.rs"
required-features = ["mmap"]

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

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

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

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

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

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

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

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

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

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

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

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

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

[[test]]
name = "queries"
path = "tests/queries/main.rs"

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

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

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

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

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

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

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

[[bench]]
name = "codec"
path = "benches/codec.rs"
harness = false
required-features = [
    "codec",
    "mmdb",
    "mmap",
]

[[bench]]
name = "index"
path = "benches/index.rs"
harness = false

[[bench]]
name = "mmdb"
path = "benches/mmdb.rs"
harness = false
required-features = [
    "codec",
    "mmdb",
    "mmap",
    "external-sort",
]

[[bench]]
name = "scale"
path = "benches/scale.rs"
harness = false

[[bench]]
name = "search"
path = "benches/search.rs"
harness = false

[[bench]]
name = "shapes"
path = "benches/shapes.rs"
harness = false

[[bench]]
name = "traffic"
path = "benches/traffic.rs"
harness = false

[dependencies.hashbrown]
version = "0.17.1"
features = ["inline-more"]
default-features = false

[dependencies.maxminddb]
version = "0.32"
optional = true
default-features = false

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

[dependencies.simdutf8]
version = "0.1.5"
optional = true

[dependencies.tempfile]
version = "3"
optional = true

[dependencies.thiserror]
version = "2"

[dev-dependencies.compio]
version = "0.19.2"
features = [
    "runtime",
    "polling",
]
default-features = false

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

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

[dev-dependencies.serde_json]
version = "1"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "sync",
]
default-features = false

[lints.clippy]
allow_attributes_without_reason = "deny"
dbg_macro = "deny"
exit = "deny"
expect_used = "deny"
indexing_slicing = "deny"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
string_slice = "deny"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unreachable = "deny"
unused_result_ok = "deny"
unwrap_used = "deny"

[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"
unused_must_use = "deny"
unused_qualifications = "warn"

[lints.rustdoc]
broken_intra_doc_links = "deny"
private_intra_doc_links = "allow"

[profile.release]
codegen-units = 1