# 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.94.1"
name = "geiserx_ts_bart"
version = "0.35.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "fast, memory-efficient routing table"
readme = "README.md"
keywords = [
    "tailscale",
    "bart",
    "routing",
    "vec",
    "radix",
]
categories = [
    "data-structures",
    "network-programming",
    "no-std",
]
license = "BSD-3-Clause"
repository = "https://github.com/GeiserX/tailscale-rs"

[features]
default = ["lut"]
lut = ["ts_bitset/lut"]
smallvec = [
    "dep:smallvec",
    "ts_array256/smallvec",
]

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

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

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

[dependencies.cfg-if]
version = "1.0"

[dependencies.heapless]
version = "0.9"

[dependencies.ipnet]
version = "2.12"
default-features = false

[dependencies.smallvec]
version = "1.15"
features = [
    "const_new",
    "const_generics",
    "union",
]
optional = true

[dependencies.static_assertions]
version = "1.1"

[dependencies.ts_array256]
version = "0.35.1"
package = "geiserx_ts_array256"

[dependencies.ts_bitset]
version = "0.35.1"
default-features = false
package = "geiserx_ts_bitset"

[dev-dependencies.divan]
version = "0.1"

[dev-dependencies.flate2]
version = "1.1"

[dev-dependencies.itertools]
version = "0.14"

[dev-dependencies.lazy_static]
version = "1.5"

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

[dev-dependencies.rand]
version = "0.10"

[lints.clippy]
multiple_crate_versions = "allow"
too_many_arguments = "allow"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.rust]
closure_returning_async_block = "warn"
let-underscore = "warn"
missing_docs = "warn"

[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_html_tags = "deny"
private_intra_doc_links = "deny"
