"components/backends/vscode:/vscode.git/clone" did not exist on "72128596338193afcc4cbf24901db04282856dd5"
Cargo.toml 3.89 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
[package.metadata.cargo-machete]
ignored = ["mio"]

18
19
20
[features]
default = []
integration = []
21
22
testing-etcd = [] # Tests that require an active ETCD server
tokio-console = ["dep:console-subscriber", "tokio/tracing"]
23
compute-validation = [] # Enable validation and timing for compute macros
24
tcp-low-latency = [] # Enable Linux-specific TCP optimizations (TCP_QUICKACK, SO_BUSY_POLL)
25
26
27
# 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"]
28

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

75
76
cudarc = { workspace = true, features = ["nvtx"], optional = true }

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

96
97
98
99
# 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
100
[dev-dependencies]
101
criterion = { version = "0.5", features = ["async_tokio"] }
102
rstest = { version = "0.23.0" }
103
temp-env = { version = "0.3.6" , features=["async_closure"] }
104
105
stdio-override = {version= "0.2.0"}
jsonschema = {version = "0.17"}
106
107
108
109
tempfile = { workspace = true }

[[bench]]
name = "compute_pool_overhead"
110
harness = false
111
112
113
114

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