Cargo.toml 1.87 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
16
17
metrics = ["dep:prometheus"]
runtime-protocols = ["dep:dynamo-runtime"]
bench = []
18
standalone-indexer = ["dep:axum", "dep:bytes", "dep:zeromq", "dep:serde_json", "dep:reqwest"]
19
indexer-runtime = ["metrics", "runtime-protocols", "standalone-indexer"]
20
21
22

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

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

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

50
rustc-hash = "2.1.1"
51

52
# standalone-indexer (optional)
53
axum = { workspace = true, optional = true }
54
bytes = { workspace = true, optional = true }
55
reqwest = { workspace = true, optional = true }
56
57
zeromq = { version = "0.4.1", optional = true }

58
59
60
61
[dev-dependencies]
rstest = "0.18.2"
rstest_reuse = "0.7.0"
serde_json = { workspace = true }
62
tokio = { workspace = true, features = ["rt", "macros", "time", "test-util"] }
63
dynamo-tokens = { workspace = true }