Cargo.toml 3.02 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

Ryan Olson's avatar
Ryan Olson committed
16
[package]
Neelay Shah's avatar
Neelay Shah committed
17
name = "dynamo-runtime"
Alec's avatar
Alec committed
18
readme = "README.md"
19
20
21
22
23
24
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
25
description = "Dynamo Runtime Library"
Ryan Olson's avatar
Ryan Olson committed
26

27
28
29
[features]
default = []
integration = []
30
31
# Tests that require an active ETCD server
testing-etcd = []
32

Ryan Olson's avatar
Ryan Olson committed
33
[dependencies]
34
35
36
37
38
39
# Use workspace dependencies where available
anyhow = { workspace = true }
async-nats = { workspace = true }
async-stream = { workspace = true }
async-trait = { workspace = true }
async_zmq = { workspace = true }
40
axum = { workspace = true }
41
42
43
44
45
46
blake3 = { workspace = true }
bytes = { workspace = true }
chrono = { workspace = true }
derive_builder = { workspace = true }
derive-getters = { workspace = true }
either = { workspace = true }
47
etcd-client = { workspace = true }
48
futures = { workspace = true }
49
humantime = { workspace = true }
50
prometheus = { workspace = true }
51
rand = { workspace = true }
52
53
54
55
56
57
serde = { workspace = true }
serde_json = { workspace = true }
tokio = { workspace = true }
tokio-stream = { workspace = true }
tokio-util = { workspace = true }
tracing = { workspace = true }
58
tracing-subscriber = { workspace = true }
59
thiserror = { workspace = true }
60
uuid = { workspace = true }
61
62
url = { workspace = true }
validator = { workspace = true }
63
xxhash-rust = { workspace = true }
Ryan Olson's avatar
Ryan Olson committed
64

65
66
async-once-cell = { version = "0.5.4" }
educe = { version = "0.6.0" }
67
figment = { version = "0.10.19", features = ["env", "json", "toml", "test"] }
Ryan Olson's avatar
Ryan Olson committed
68
local-ip-address = { version = "0.6.3" }
69
log = { version = "0.4" }
Ryan Olson's avatar
Ryan Olson committed
70
71
72
nid = { version = "3.0.0", features = ["serde"] }
nix = { version = "0.29", features = ["signal"] }
nuid = { version = "0.5" }
73
74
75
once_cell = { version = "1" }
regex = { version = "1" }
socket2 = { version = "0.5.8" }
Ryan Olson's avatar
Ryan Olson committed
76
77

[dev-dependencies]
78
79
assert_matches = { version = "1.5.0" }
env_logger = { version = "0.11" }
80
reqwest = { version = "0.12.22", features = ["json"] }
81
82
rstest = { version = "0.23.0" }
temp-env = { version = "0.3.6" }
83
84
85
86
87
88
89

# These patches are to address issues in reqwest, which is used in the HTTP server test (but not on servers).
# These are transitive dependencies to use secure versions and mitigate known vulnerabilities.
[patch.crates-io]
tokio  = { version = "1.18.4" }   # addresses RUSTSEC-2023-0001
h2     = { version = "0.4.4"   }   # addresses RUSTSEC-2024-0332
rustls = { version = "0.23.18" }   # addresses RUSTSEC-2024-0399