# 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 = "2021"
name = "kv-index"
version = "1.3.2"
authors = [
    "Simo Lin <linsimo.mark@gmail.com>",
    "Chang Su <mckvtl@gmail.com>",
    "Keyang Ru <rukeyang@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Radix tree implementations for prefix matching and cache-aware routing"
readme = false
keywords = [
    "radix-tree",
    "prefix-matching",
    "cache-routing",
    "llm",
]
categories = [
    "data-structures",
    "caching",
]
license = "Apache-2.0"
repository = "https://github.com/lightseekorg/smg"

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

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

[dependencies.bincode]
version = "1.3"

[dependencies.blake3]
version = "1.8"

[dependencies.dashmap]
version = "6.2.1"

[dependencies.once_cell]
version = "1.21.4"

[dependencies.parking_lot]
version = "0.12.5"

[dependencies.rustc-hash]
version = "2.1.2"

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

[dependencies.tracing]
version = "0.1"

[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh3"]

[dev-dependencies.clap]
version = "4"
features = ["derive"]

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

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

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

[dev-dependencies.tokio]
version = "1.52.3"
features = [
    "rt-multi-thread",
    "macros",
    "time",
]

[lints.clippy]
absolute_paths = "warn"
allow_attributes = "warn"
assigning_clones = "warn"
cloned_instead_of_copied = "warn"
dbg_macro = "deny"
default_trait_access = "allow"
disallowed_methods = "warn"
doc_lazy_continuation = "allow"
expect_used = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
if_not_else = "warn"
ignored_unit_patterns = "warn"
inconsistent_struct_constructor = "warn"
inefficient_to_string = "warn"
large_futures = "warn"
manual_assert = "warn"
manual_string_new = "warn"
match_bool = "warn"
match_same_arms = "allow"
match_wildcard_for_single_variants = "warn"
must_use_candidate = "allow"
needless_raw_string_hashes = "warn"
or_fun_call = "warn"
panic = "warn"
print_stderr = "warn"
print_stdout = "warn"
ref_option = "warn"
semicolon_if_nothing_returned = "warn"
single_component_path_imports = "warn"
single_match_else = "allow"
stable_sort_primitive = "warn"
todo = "deny"
trivially_copy_pass_by_ref = "warn"
unimplemented = "deny"
uninlined_format_args = "warn"
unnecessary_wraps = "warn"
unreachable = "deny"
unused_async = "warn"
unused_self = "warn"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "deny"
unused_qualifications = "warn"
