Skip to content

Commit 6f010fa

Browse files
authored
Merge pull request #2830 from fermyon/tokio-rustls-features
Get `rustls` features under control
2 parents ff8b05a + 63a91c1 commit 6f010fa

File tree

8 files changed

+15
-27
lines changed

8 files changed

+15
-27
lines changed

Cargo.lock

Lines changed: 2 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ conformance-tests = { git = "https://github.com/fermyon/conformance-tests", rev
128128
http-body-util = "0.1.0"
129129
hyper = { version = "1.0.0", features = ["full"] }
130130
reqwest = { version = "0.12", features = ["stream", "blocking"] }
131+
# In `rustls` turn off the `aws_lc_rs` default feature and turn on `ring`.
132+
# If both `aws_lc_rs` and `ring` are enabled, a panic at runtime will occur.
133+
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "logging", "tls12"] }
131134
test-environment = { git = "https://github.com/fermyon/conformance-tests", rev = "387b7f375df59e6254a7c29cf4a53507a9f46d32" }
132135
tracing = { version = "0.1", features = ["log"] }
133136

crates/factor-key-value/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ toml = "0.8"
1818
tracing = { workspace = true }
1919

2020
[dev-dependencies]
21+
spin-factors-test = { path = "../factors-test" }
2122
spin-key-value-redis = { path = "../key-value-redis" }
2223
spin-key-value-spin = { path = "../key-value-spin" }
23-
spin-factors-test = { path = "../factors-test" }
2424
tempfile = "3.12.0"
2525
tokio = { version = "1", features = ["macros", "rt"] }
2626

crates/factor-outbound-http/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ http-body-util = "0.1"
1111
hyper = "1.4.1"
1212
ip_network = "0.4"
1313
reqwest = { version = "0.12", features = ["gzip"] }
14-
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
14+
rustls = { workspace = true }
1515
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
1616
spin-factors = { path = "../factors" }
1717
spin-telemetry = { path = "../telemetry" }

crates/factor-outbound-networking/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ anyhow = "1"
99
futures-util = "0.3"
1010
http = "1.1.0"
1111
ipnet = "2.9.0"
12-
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
12+
rustls = { workspace = true }
1313
rustls-pemfile = { version = "2.1.2", optional = true }
1414
rustls-pki-types = "1.7.0"
1515
serde = { version = "1", features = ["derive"] }

crates/loader/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ serde_json = "1.0"
2424
sha2 = "0.10.8"
2525
shellexpand = "3.1"
2626
spin-common = { path = "../common" }
27+
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
2728
spin-locked-app = { path = "../locked-app" }
2829
spin-manifest = { path = "../manifest" }
29-
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
3030
spin-serde = { path = "../serde" }
3131
tempfile = "3.8.0"
3232
terminal = { path = "../terminal" }

crates/runtime-config/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ rust-version.workspace = true
1212
anyhow = { workspace = true }
1313
spin-common = { path = "../common" }
1414
spin-factor-key-value = { path = "../factor-key-value" }
15-
spin-key-value-azure = { path = "../key-value-azure" }
16-
spin-key-value-redis = { path = "../key-value-redis" }
17-
spin-key-value-spin = { path = "../key-value-spin" }
1815
spin-factor-llm = { path = "../factor-llm" }
1916
spin-factor-outbound-http = { path = "../factor-outbound-http" }
2017
spin-factor-outbound-mqtt = { path = "../factor-outbound-mqtt" }
@@ -26,6 +23,9 @@ spin-factor-sqlite = { path = "../factor-sqlite" }
2623
spin-factor-variables = { path = "../factor-variables" }
2724
spin-factor-wasi = { path = "../factor-wasi" }
2825
spin-factors = { path = "../factors" }
26+
spin-key-value-azure = { path = "../key-value-azure" }
27+
spin-key-value-redis = { path = "../key-value-redis" }
28+
spin-key-value-spin = { path = "../key-value-spin" }
2929
spin-sqlite = { path = "../sqlite" }
3030
spin-trigger = { path = "../trigger" }
3131
toml = "0.8"

crates/trigger-http/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,24 @@ hyper = { workspace = true }
1919
hyper-util = { version = "0.1.2", features = ["tokio"] }
2020
indexmap = "1"
2121
percent-encoding = "2"
22-
rustls = { version = "0.22.4" }
22+
rustls = { workspace = true }
2323
rustls-pemfile = "2.1.2"
2424
rustls-pki-types = "1.7"
2525
serde = { version = "1.0", features = ["derive"] }
2626
serde_json = "1"
2727
spin-app = { path = "../app" }
2828
spin-core = { path = "../core" }
2929
spin-factor-outbound-http = { path = "../factor-outbound-http" }
30+
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
3031
spin-factor-wasi = { path = "../factor-wasi" }
3132
spin-factors = { path = "../factors" }
3233
spin-http = { path = "../http" }
33-
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
3434
spin-telemetry = { path = "../telemetry" }
3535
spin-trigger = { path = "../trigger" }
3636
spin-world = { path = "../world" }
3737
terminal = { path = "../terminal" }
38-
tls-listener = { version = "0.10.0", features = ["rustls"] }
3938
tokio = { version = "1.23", features = ["full"] }
40-
tokio-rustls = { version = "0.25.0" }
39+
tokio-rustls = { version = "0.26", default-features = false, features = ["logging", "tls12"] }
4140
tracing = { workspace = true }
4241
url = "2.4.1"
4342
wasmtime = { workspace = true }

0 commit comments

Comments
 (0)