Skip to content

Commit

Permalink
Merge pull request #2830 from fermyon/tokio-rustls-features
Browse files Browse the repository at this point in the history
Get `rustls` features under control
  • Loading branch information
lann authored Sep 13, 2024
2 parents ff8b05a + 63a91c1 commit 6f010fa
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 27 deletions.
18 changes: 2 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Expand Down
2 changes: 1 addition & 1 deletion crates/factor-key-value/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ toml = "0.8"
tracing = { workspace = true }

[dev-dependencies]
spin-factors-test = { path = "../factors-test" }
spin-key-value-redis = { path = "../key-value-redis" }
spin-key-value-spin = { path = "../key-value-spin" }
spin-factors-test = { path = "../factors-test" }
tempfile = "3.12.0"
tokio = { version = "1", features = ["macros", "rt"] }

Expand Down
2 changes: 1 addition & 1 deletion crates/factor-outbound-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ http-body-util = "0.1"
hyper = "1.4.1"
ip_network = "0.4"
reqwest = { version = "0.12", features = ["gzip"] }
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
rustls = { workspace = true }
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
spin-factors = { path = "../factors" }
spin-telemetry = { path = "../telemetry" }
Expand Down
2 changes: 1 addition & 1 deletion crates/factor-outbound-networking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ anyhow = "1"
futures-util = "0.3"
http = "1.1.0"
ipnet = "2.9.0"
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
rustls = { workspace = true }
rustls-pemfile = { version = "2.1.2", optional = true }
rustls-pki-types = "1.7.0"
serde = { version = "1", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/loader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ serde_json = "1.0"
sha2 = "0.10.8"
shellexpand = "3.1"
spin-common = { path = "../common" }
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
spin-locked-app = { path = "../locked-app" }
spin-manifest = { path = "../manifest" }
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
spin-serde = { path = "../serde" }
tempfile = "3.8.0"
terminal = { path = "../terminal" }
Expand Down
6 changes: 3 additions & 3 deletions crates/runtime-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ rust-version.workspace = true
anyhow = { workspace = true }
spin-common = { path = "../common" }
spin-factor-key-value = { path = "../factor-key-value" }
spin-key-value-azure = { path = "../key-value-azure" }
spin-key-value-redis = { path = "../key-value-redis" }
spin-key-value-spin = { path = "../key-value-spin" }
spin-factor-llm = { path = "../factor-llm" }
spin-factor-outbound-http = { path = "../factor-outbound-http" }
spin-factor-outbound-mqtt = { path = "../factor-outbound-mqtt" }
Expand All @@ -26,6 +23,9 @@ spin-factor-sqlite = { path = "../factor-sqlite" }
spin-factor-variables = { path = "../factor-variables" }
spin-factor-wasi = { path = "../factor-wasi" }
spin-factors = { path = "../factors" }
spin-key-value-azure = { path = "../key-value-azure" }
spin-key-value-redis = { path = "../key-value-redis" }
spin-key-value-spin = { path = "../key-value-spin" }
spin-sqlite = { path = "../sqlite" }
spin-trigger = { path = "../trigger" }
toml = "0.8"
Expand Down
7 changes: 3 additions & 4 deletions crates/trigger-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,24 @@ hyper = { workspace = true }
hyper-util = { version = "0.1.2", features = ["tokio"] }
indexmap = "1"
percent-encoding = "2"
rustls = { version = "0.22.4" }
rustls = { workspace = true }
rustls-pemfile = "2.1.2"
rustls-pki-types = "1.7"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
spin-app = { path = "../app" }
spin-core = { path = "../core" }
spin-factor-outbound-http = { path = "../factor-outbound-http" }
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
spin-factor-wasi = { path = "../factor-wasi" }
spin-factors = { path = "../factors" }
spin-http = { path = "../http" }
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
spin-telemetry = { path = "../telemetry" }
spin-trigger = { path = "../trigger" }
spin-world = { path = "../world" }
terminal = { path = "../terminal" }
tls-listener = { version = "0.10.0", features = ["rustls"] }
tokio = { version = "1.23", features = ["full"] }
tokio-rustls = { version = "0.25.0" }
tokio-rustls = { version = "0.26", default-features = false, features = ["logging", "tls12"] }
tracing = { workspace = true }
url = "2.4.1"
wasmtime = { workspace = true }
Expand Down

0 comments on commit 6f010fa

Please sign in to comment.