"deploy/operator/vscode:/vscode.git/clone" did not exist on "c09a9aad10915e9294528345d9414db2d01c3eda"
Cargo.toml 3.81 KB
Newer Older
1
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
3
# SPDX-License-Identifier: Apache-2.0

Ryan Olson's avatar
Ryan Olson committed
4
[package]
Neelay Shah's avatar
Neelay Shah committed
5
name = "dynamo-runtime"
Alec's avatar
Alec committed
6
readme = "README.md"
7
8
9
10
11
12
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
13
description = "Dynamo Runtime Library"
Ryan Olson's avatar
Ryan Olson committed
14

15
16
17
[features]
default = []
integration = []
18
19
testing-etcd = [] # Tests that require an active ETCD server
tokio-console = ["dep:console-subscriber", "tokio/tracing"]
20
compute-validation = [] # Enable validation and timing for compute macros
21
tcp-low-latency = [] # Enable Linux-specific TCP optimizations (TCP_QUICKACK, SO_BUSY_POLL)
22
23
24
# NVTX timeline annotations for Nsight Systems (compile-time off; also gated at runtime by DYN_ENABLE_RUST_NVTX).
# Overhead: feature off = zero; feature on, env off = ~1ns AtomicBool load; feature on, env on = ~50ns/annotation.
nvtx = ["dep:cudarc"]
25

Ryan Olson's avatar
Ryan Olson committed
26
[dependencies]
27
28
29
30
31
32
# Use workspace dependencies where available
anyhow = { workspace = true }
async-nats = { workspace = true }
async-stream = { workspace = true }
async-trait = { workspace = true }
async_zmq = { workspace = true }
33
34
zmq = { workspace = true }
lru = { version = "0.12" }
35
axum = { workspace = true }
36
37
38
blake3 = { workspace = true }
bytes = { workspace = true }
chrono = { workspace = true }
39
dashmap = { workspace = true }
40
41
derive_builder = { workspace = true }
derive-getters = { workspace = true }
42
dynamo-config = { workspace = true }
43
either = { workspace = true }
44
etcd-client = { workspace = true }
45
futures = { workspace = true }
46
humantime = { workspace = true }
47
parking_lot = { workspace = true }
48
prometheus = { workspace = true }
49
rand = { workspace = true }
50
reqwest = { workspace = true }
51
rmp-serde = { workspace = true }
52
53
54
55
56
serde = { workspace = true }
serde_json = { workspace = true }
tokio = { workspace = true }
tokio-stream = { workspace = true }
tokio-util = { workspace = true }
57
tower-http = { workspace = true }
58
tracing = { workspace = true }
59
hyper-util = { version = "0.1", features = ["tokio", "server", "server-auto"] }
60
tracing-subscriber = { workspace = true }
61
62
63
64
tracing-opentelemetry = { workspace = true }
opentelemetry = { workspace = true }
opentelemetry_sdk = { workspace = true }
opentelemetry-otlp = { workspace = true }
65
opentelemetry-appender-tracing = { workspace = true }
66
thiserror = { workspace = true }
67
uuid = { workspace = true }
68
69
url = { workspace = true }
validator = { workspace = true }
70
xxhash-rust = { workspace = true }
Ryan Olson's avatar
Ryan Olson committed
71

72
73
cudarc = { workspace = true, features = ["nvtx"], optional = true }

74
arc-swap = { version = "1" }
75
async-once-cell = { version = "0.5.4" }
76
bincode = { version = "1" }
77
console-subscriber = { version = "0.4", optional = true }
78
educe = { version = "0.6.0" }
79
figment = { version = "0.10.19", features = ["env", "json", "toml", "test"] }
80
notify = { version = "6.1", default-features = false, features = ["macos_fsevent"] }
81
libc = { version = "0.2" }
Ryan Olson's avatar
Ryan Olson committed
82
local-ip-address = { version = "0.6.3" }
83
log = { version = "0.4" }
Ryan Olson's avatar
Ryan Olson committed
84
nuid = { version = "0.5" }
85
once_cell = { version = "1" }
86
percent-encoding = { version = "2.3.2" } # also used by tonic, reqwest, axum, etc
87
rayon = { version = "1.10" }
88
89
regex = { version = "1" }
socket2 = { version = "0.5.8" }
90
tokio-rayon = { version = "2.1" }
Ryan Olson's avatar
Ryan Olson committed
91

92
93
94
95
# Kubernetes discovery backend
kube = { version = "2.0.1", default-features = false, features = ["runtime", "derive", "client", "rustls-tls", "aws-lc-rs"] }
k8s-openapi = { version = "0.26.0", features = ["v1_32"] }

Ryan Olson's avatar
Ryan Olson committed
96
[dev-dependencies]
97
criterion = { version = "0.5", features = ["async_tokio"] }
98
rstest = { version = "0.23.0" }
99
temp-env = { version = "0.3.6" , features=["async_closure"] }
100
101
stdio-override = {version= "0.2.0"}
jsonschema = {version = "0.17"}
102
103
104
105
tempfile = { workspace = true }

[[bench]]
name = "compute_pool_overhead"
106
harness = false
107
108
109
110

[[bench]]
name = "tcp_codec_perf"
harness = false