Cargo.toml 4.64 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
    "launch/dynamo-run",
7
8
    "lib/llm",
    "lib/runtime",
9
    "lib/config",
10
    "lib/tokens",
11
    "lib/mocker",
12
    "lib/kv-router",
13
    "lib/memory",
14
    "lib/async-openai",
15
    "lib/parsers",
16
    "lib/bindings/c",
17
    "lib/bindings/python/codegen",
18
    "lib/engines/*",
19
    "lib/config",
20
]
21
22
23
24
25
26
27
# 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.
# - launch/dynamo-run
# - lib/engines/*
default-members = [
    "lib/llm",
    "lib/runtime",
28
    "lib/config",
29
    "lib/tokens",
30
    "lib/mocker",
31
    "lib/memory",
32
33
34
35
    "lib/async-openai",
    "lib/parsers",
    "lib/bindings/c",
]
36
resolver = "3"
37
38

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

[workspace.dependencies]
49
# Local crates
50
51
52
53
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" }
54
dynamo-memory = { path = "lib/memory", version = "0.9.0" }
55
dynamo-mocker = { path = "lib/mocker", version = "0.9.0" }
56
dynamo-kv-router = { path = "lib/kv-router", version = "0.9.0", features = ["metrics"] }
57
dynamo-async-openai = { path = "lib/async-openai", version = "0.9.0", features = ["byot"] }
58
dynamo-parsers = { path = "lib/parsers", version = "0.9.0" }
59

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

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

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

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

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

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