Cargo.toml 2.47 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 = ["dep:dynamo-runtime"]
16
bench = ["dep:clap", "dep:indicatif", "dep:serde_json", "dep:plotters"]
17
standalone-indexer = ["dep:axum", "dep:bytes", "dep:zeromq", "dep:serde_json", "dep:reqwest"]
18
indexer-bin = ["standalone-indexer", "dep:clap", "dep:tracing-subscriber"]
19
test-endpoints = ["indexer-bin"]
20
indexer-runtime = ["metrics", "standalone-indexer"]
21
22
23

[dependencies]
# repo
24
dynamo-runtime = { workspace = true, optional = true }
25
26
27
28
29
dynamo-tokens = { workspace = true }

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

Yan Ru Pei's avatar
Yan Ru Pei committed
46
47
48
# dependencies
flume = "0.12.0"
parking_lot = { workspace = true }
49
rmp-serde = { workspace = true }
Yan Ru Pei's avatar
Yan Ru Pei committed
50

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

57
58
# indexer-bin (optional)
axum = { workspace = true, optional = true }
59
bytes = { workspace = true, optional = true }
60
reqwest = { workspace = true, optional = true }
61
tracing-subscriber = { workspace = true, optional = true }
62
63
zeromq = { version = "0.4.1", optional = true }

64

65
66
67
[package.metadata.cargo-machete]
ignored = ["indicatif", "plotters"]

68
69
70
71
[dev-dependencies]
rstest = "0.18.2"
rstest_reuse = "0.7.0"
serde_json = { workspace = true }
72
tokio = { workspace = true, features = ["rt", "macros", "time", "test-util"] }
73
dynamo-tokens = { workspace = true }
74
75
76
77
78

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