diff --git a/Cargo.lock b/Cargo.lock index a3d8953..0a98bd0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7264,7 +7264,6 @@ dependencies = [ "aws-lc-rs", "log", "once_cell", - "ring", "rustls-pki-types", "rustls-webpki", "subtle", @@ -9699,6 +9698,7 @@ dependencies = [ "md5", "reqwest", "rusqlite", + "rustls", "serde", "serde_json", "thiserror 2.0.21", diff --git a/crates/voelin-core/Cargo.toml b/crates/voelin-core/Cargo.toml index 68103bf..571c60f 100644 --- a/crates/voelin-core/Cargo.toml +++ b/crates/voelin-core/Cargo.toml @@ -57,6 +57,8 @@ tsproto-packets = { path = "../proto/tsproto-packets" } tsproto-types = { path = "../proto/tsproto-types" } [dev-dependencies] +# Already in the app's graph (reqwest); for one_rustls_crypto_provider. +rustls = { version = "0.23", default-features = false } voelin-myts = { path = "../voelin-myts" } # `process`: the browser interop test drives Chromium through Node.js. tokio = { version = "1", features = ["macros", "net", "process", "rt-multi-thread", "test-util"] } diff --git a/crates/voelin-core/src/lib.rs b/crates/voelin-core/src/lib.rs index 1cfac20..598e6f9 100644 --- a/crates/voelin-core/src/lib.rs +++ b/crates/voelin-core/src/lib.rs @@ -1032,3 +1032,13 @@ fn command_session(command: &Command) -> SessionId { } } } + +/// The app has one rustls crypto provider. With two (aws-lc-rs and ring), a +/// TLS client built without an explicit provider panics: `wss://` gateways +/// did. This test's build has the app's TLS dependencies (reqwest here, +/// tonic through the voelin-myts dev-dependency). +#[cfg(test)] +#[test] +fn one_rustls_crypto_provider() { + let _ = rustls::ClientConfig::builder(); +}