Cargo.toml 4.72 KB
Newer Older
1
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
3
4
5
# SPDX-License-Identifier: Apache-2.0

[workspace]
members = [
6
7
    "lib/llm",
    "lib/runtime",
8
    "lib/config",
9
    "lib/tokens",
10
    "lib/mocker",
11
    "lib/kv-router",
12
    "lib/memory",
Ryan Olson's avatar
Ryan Olson committed
13
    "lib/kvbm-common",
14
    "lib/kvbm-kernels",
Ryan Olson's avatar
Ryan Olson committed
15
    "lib/kvbm-logical",
Ryan Olson's avatar
Ryan Olson committed
16
    "lib/kvbm-physical",
17
    "lib/async-openai",
18
    "lib/parsers",
Yan Ru Pei's avatar
Yan Ru Pei committed
19
    "lib/bench",
20
    "lib/bindings/c",
21
    "lib/bindings/python/codegen",
22
    "lib/config",
23
    "lib/velo-events",
24
]
25
resolver = "3"
26
27

[workspace.package]
28
version = "1.0.0"
29
edition = "2024"
30
31
description = "Dynamo Inference Framework"
authors = ["NVIDIA Inc. <sw-dl-dynamo@nvidia.com>"]
32
license = "Apache-2.0"
Neelay Shah's avatar
Neelay Shah committed
33
34
homepage = "https://github.com/ai-dynamo/dynamo"
repository = "https://github.com/ai-dynamo/dynamo.git"
35
keywords = ["llm", "genai", "inference", "nvidia", "distributed"]
36
37

[workspace.dependencies]
38
# Local crates
39
40
41
42
43
44
45
46
47
dynamo-runtime = { path = "lib/runtime", version = "1.0.0" }
dynamo-llm = { path = "lib/llm", version = "1.0.0" }
dynamo-config = { path = "lib/config", version = "1.0.0" }
dynamo-tokens = { path = "lib/tokens", version = "1.0.0" }
dynamo-memory = { path = "lib/memory", version = "1.0.0" }
dynamo-mocker = { path = "lib/mocker", version = "1.0.0" }
dynamo-kv-router = { path = "lib/kv-router", version = "1.0.0", features = ["metrics"] }
dynamo-async-openai = { path = "lib/async-openai", version = "1.0.0", features = ["byot"] }
dynamo-parsers = { path = "lib/parsers", version = "1.0.0" }
48
49

# kvbm
Ryan Olson's avatar
Ryan Olson committed
50
kvbm-common = { path = "lib/kvbm-common", version = "1.0.0" }
51
52
kvbm-kernels = { path = "lib/kvbm-kernels", version = "1.0.0" }
kvbm-logical = { path = "lib/kvbm-logical", version = "1.0.0" }
Ryan Olson's avatar
Ryan Olson committed
53
kvbm-physical = { path = "lib/kvbm-physical", version = "1.0.0" }
54
55

# velo
Ryan Olson's avatar
Ryan Olson committed
56
velo-events = { path = "lib/velo-events", version = "1.0.0" }
57

58
# External dependencies
59
anyhow = { version = "1" }
60
async-nats = { version = "0.45.0", features = ["service"] }
61
62
async-stream = { version = "0.3" }
async-trait = { version = "0.1" }
63
64
65
async_zmq = { version = "0.4.0" }
blake3 = { version = "1" }
bytes = { version = "1" }
66
67
68
69
70
71
72
chrono = { version = "0.4", default-features = false, features = [
    "alloc",
    "std",
    "clock",
    "now",
    "serde",
] }
Ryan Olson's avatar
Ryan Olson committed
73
cudarc = { version = "0.19.2", features = ["cuda-version-from-build-system", "fallback-latest"] }
74
dashmap = { version = "6.1" }
75
76
77
derive_builder = { version = "0.20" }
derive-getters = { version = "0.5" }
either = { version = "1.13", features = ["serde"] }
78
etcd-client = { version = "0.17.0", features = ["tls"] }
79
futures = { version = "0.3" }
80
81
82
83
84
85
86
hf-hub = { version = "0.4.2", default-features = false, features = [
    "tokio",
    "rustls-tls",
    "ureq",
] }

# ModelExpress for model downloading
87
88
modelexpress-client = { version = "0.2.0" }
modelexpress-common = { version = "0.2.0" }
89

90
humantime = { version = "2.2.0" }
91
libc = { version = "0.2" }
92
oneshot = { version = "0.1.13", features = ["std", "async"] }
93
parking_lot = "0.12.5"
Ryan Olson's avatar
Ryan Olson committed
94
prometheus = { version = "0.14"}
95
96
rand = { version = "0.9.2" }
reqwest = { version = "0.12.24", default-features = false, features = [
97
98
99
100
    "json",
    "stream",
    "rustls-tls",
] }
101
rmp-serde = { version = "1" }
102
103
# "rc" is for async-openai. Allows serializing Rc and Arc. Generally avoid doing that.
serde = { version = "1", features = ["derive", "rc"] }
104
serde_json = { version = "1" }
105
strum = { version = "0.27", features = ["derive"] }
106
tempfile = "3"
107
thiserror = { version = "2.0.17" }
108
109
tmq = { version = "0.5.0" }
zmq = { version = "0.10" }
Ryan Olson's avatar
Ryan Olson committed
110
tokio = { version = "=1.48.0", features = ["full"] }
111
tokio-stream = { version = "0.1" }
Ryan Olson's avatar
Ryan Olson committed
112
tokio-util = { version = "0.7.17", features = ["codec", "net", "rt", "io-util"] }
113
tower-http = { version = "0.6", features = ["trace"] }
114
axum = { version = "=0.8.4", features = ["macros"] }
115
axum-core = { version = "0.5.2" }
116
117
hyper = { version = "=1.7.0" }
hyper-util = { version = "=0.1.17" }
118
tracing = { version = "0.1" }
119
120
121
122
123
tracing-subscriber = { version = "0.3", features = [
    "env-filter",
    "local-time",
    "json",
] }
124
125
126
127
tracing-opentelemetry = { version = "0.32.0" }
opentelemetry = { version = "0.31.0", features = ["trace"] }
opentelemetry_sdk = { version = "0.31.0", features = ["trace", "rt-tokio"] }
opentelemetry-otlp = { version = "0.31.0", features = ["trace", "grpc-tonic"] }
128
validator = { version = "0.20.0", features = ["derive"] }
129
uuid = { version = "1.18.1", features = ["v4", "serde"] }
130
url = { version = "2.5", features = ["serde"] }
131
xxhash-rust = { version = "0.8", features = ["xxh3", "const_xxh3"] }
Graham King's avatar
Graham King committed
132
133
134

[profile.dev.package]
insta.opt-level = 3
135

136
137
[profile.dev]
# release level optimizations otherwise everything feels slow
138
# opt-level = 3
139

140
[profile.release]
141
# These make the build much slower but shrink the binary, and could help performance
142
codegen-units = 1
143
lto = "thin"