Skip to content

Commit 555bfff

Browse files
authored
Merge pull request #720 from naterichman/rustls-default-features
MAIN: Don't use all rustls default features
2 parents 859eeec + b2d3771 commit 555bfff

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

ul/Cargo.toml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ bytes = "^1.6"
1717
cfg-if = "1.0.3"
1818
dicom-encoding = { path = "../encoding/", version = "0.9" }
1919
dicom-transfer-syntax-registry = { path = "../transfer-syntax-registry/", version = "0.9", default-features = false }
20-
rustls = {version = "0.23.31", optional = true }
2120
snafu = "0.8"
22-
tokio-rustls = {version = "0.26.2", optional = true }
2321
tracing = "0.1.34"
2422

2523
[dependencies.tokio]
@@ -32,6 +30,24 @@ features = [
3230
"io-util",
3331
"time"
3432
]
33+
[dependencies.rustls]
34+
version = "0.23.31"
35+
optional = true
36+
default-features = false
37+
features = [
38+
"logging",
39+
"tls12",
40+
"std"
41+
]
42+
43+
[dependencies.tokio-rustls]
44+
version = "0.26.2"
45+
optional = true
46+
default-features = false
47+
features = [
48+
"logging",
49+
"tls12",
50+
]
3551

3652
[dev-dependencies]
3753
dicom-dictionary-std = { path = "../dictionary-std" }
@@ -43,6 +59,8 @@ dicom-object = { path = '../object' }
4359
time = "0.3"
4460
rustls-cert-gen = "0.2.0"
4561
rcgen = "0.14.4"
62+
# Install full features of rustls for testing
63+
rustls = "0.23.31"
4664

4765
[features]
4866
async = ["dep:tokio"]

0 commit comments

Comments
 (0)