Cargo.toml 4.67 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-logical",
14
    "lib/async-openai",
15
    "lib/parsers",
16
    "lib/bindings/c",
17
    "lib/bindings/python/codegen",
18
    "lib/config",
19
]
20
21
22
23
24
# Exclude certain packages that are slow to build and we don't ship as flagship
# features from default build, but keep them in workspace for convenience.
default-members = [
    "lib/llm",
    "lib/runtime",
25
    "lib/config",
26
    "lib/tokens",
27
    "lib/mocker",
28
    "lib/memory",
Ryan Olson's avatar
Ryan Olson committed
29
    "lib/kvbm-logical",
30
31
32
33
    "lib/async-openai",
    "lib/parsers",
    "lib/bindings/c",
]
34
resolver = "3"
35
36

[workspace.package]
37
version = "0.9.0"
38
edition = "2024"
39
40
description = "Dynamo Inference Framework"
authors = ["NVIDIA Inc. <sw-dl-dynamo@nvidia.com>"]
41
license = "Apache-2.0"
Neelay Shah's avatar
Neelay Shah committed
42
43
homepage = "https://github.com/ai-dynamo/dynamo"
repository = "https://github.com/ai-dynamo/dynamo.git"
44
keywords = ["llm", "genai", "inference", "nvidia", "distributed"]
45
46

[workspace.dependencies]
47
# Local crates
48
49
50
51
dynamo-runtime = { path = "lib/runtime", version = "0.9.0" }
dynamo-llm = { path = "lib/llm", version = "0.9.0" }
dynamo-config = { path = "lib/config", version = "0.9.0" }
dynamo-tokens = { path = "lib/tokens", version = "0.9.0" }
52
dynamo-memory = { path = "lib/memory", version = "0.9.0" }
53
dynamo-mocker = { path = "lib/mocker", version = "0.9.0" }
54
dynamo-kv-router = { path = "lib/kv-router", version = "0.9.0", features = ["metrics"] }
55
dynamo-async-openai = { path = "lib/async-openai", version = "0.9.0", features = ["byot"] }
56
dynamo-parsers = { path = "lib/parsers", version = "0.9.0" }
Ryan Olson's avatar
Ryan Olson committed
57
kvbm-logical = { path = "lib/kvbm-logical", version = "0.9.0" }
58

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

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

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

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

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

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