Cargo.toml 4.56 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",
13
    "lib/async-openai",
14
    "lib/parsers",
15
    "lib/bindings/c",
16
    "lib/bindings/python/codegen",
17
    "lib/config",
18
]
19
20
21
22
23
# 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",
24
    "lib/config",
25
    "lib/tokens",
26
    "lib/mocker",
27
    "lib/memory",
28
29
30
31
    "lib/async-openai",
    "lib/parsers",
    "lib/bindings/c",
]
32
resolver = "3"
33
34

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

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

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

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

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

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

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

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