Cargo.toml 2.15 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

[package]
name = "dynamo-kv-router"
description = "KV Router - Radix tree for LLM KV cache routing"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true

[features]
default = []
15
metrics = []
16
bench = ["dep:clap", "dep:indicatif", "dep:serde_json", "dep:plotters"]
17
indexer-bin = ["metrics", "dep:axum", "dep:clap", "dep:zeromq", "dep:tracing-subscriber", "dep:serde_json"]
18
19
20

[dependencies]
# repo
21
dynamo-runtime = { workspace = true }
22
23
24
25
26
dynamo-tokens = { workspace = true }

# workspace
anyhow = { workspace = true }
async-trait = { workspace = true }
Yan Ru Pei's avatar
Yan Ru Pei committed
27
dashmap = { workspace = true }
28
derive_builder = { workspace = true }
29
derive-getters = { workspace = true }
30
31
32
prometheus = { workspace = true }
rand = { workspace = true }
serde = { workspace = true }
Yan Ru Pei's avatar
Yan Ru Pei committed
33
serde_json = { workspace = true, optional = true }
34
35
36
37
thiserror = { workspace = true }
tokio = { workspace = true }
tokio-util = { workspace = true }
tracing = { workspace = true }
38
uuid = { workspace = true }
39
validator = { workspace = true }
40
41
xxhash-rust = { workspace = true }

Yan Ru Pei's avatar
Yan Ru Pei committed
42
43
44
# dependencies
flume = "0.12.0"
parking_lot = { workspace = true }
45
rmp-serde = { workspace = true }
Yan Ru Pei's avatar
Yan Ru Pei committed
46

47
48
49
# bench (optional)
clap = { version = "4.5", features = ["derive"], optional = true }
indicatif = { version = "0.18.0", optional = true }
50
plotters = { version = "0.3", optional = true, default-features = false, features = ["svg_backend", "line_series", "point_series", "full_palette"] }
51
rustc-hash = "2.1.1"
52

53
54
55
56
57
# indexer-bin (optional)
axum = { workspace = true, optional = true }
zeromq = { version = "0.4.1", optional = true }
tracing-subscriber = { workspace = true, optional = true }

58
59
60
[package.metadata.cargo-machete]
ignored = ["indicatif", "plotters"]

61
62
63
64
65
[dev-dependencies]
rstest = "0.18.2"
rstest_reuse = "0.7.0"
serde_json = { workspace = true }
tokio = { workspace = true, features = ["rt", "macros", "time"] }
66
dynamo-tokens = { workspace = true }
67
68
69
70
71

[[bin]]
name = "dynamo-kv-indexer"
path = "src/bin/kv_indexer/main.rs"
required-features = ["indexer-bin"]