From 788781e91502572fcfd6eb08f529e4870b10f26a Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 28 Aug 2025 11:59:16 +0530 Subject: [PATCH] speechmatics: Specify rustls as an explicit dependency Commit b01829ac3 switched speechmatics use of async-tungstenite to rustls. However, this resulted in an error like below. ``` Could not automatically determine the process-level CryptoProvider from Rustls crate features. Call CryptoProvider::install_default() before this point to select a provider manually, or make sure exactly one of the 'aws-lc-rs' and 'ring' features is enabled. See the documentation of the CryptoProvider type for more information. ``` rustls crate requires that a specific provider be selected explicitly by installing the provider manually which would require a code change or specifying as an explicit dependency with the ring feature enabled. Fix this by opting for the latter approach. Part-of: --- Cargo.lock | 1 + audio/speechmatics/Cargo.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 10ea65b20..bcaa39631 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3372,6 +3372,7 @@ dependencies = [ "gstreamer-audio", "gstreamer-base", "http 1.3.1", + "rustls 0.23.31", "serde", "serde_json", "tokio", diff --git a/audio/speechmatics/Cargo.toml b/audio/speechmatics/Cargo.toml index 059e7a9a0..0d322e66d 100644 --- a/audio/speechmatics/Cargo.toml +++ b/audio/speechmatics/Cargo.toml @@ -15,6 +15,7 @@ gst-base.workspace = true gst-audio = { workspace = true, features = ["v1_16"] } tokio = { version = "1", features = [ "full" ] } async-tungstenite = { version = "0.31", features = ["tokio", "tokio-runtime", "tokio-rustls-native-certs"] } +rustls = { version = "0.23", default-features = false, features = ["std", "ring"] } serde = { version = "1", features = ["derive"] } serde_json = "1" atomic_refcell = "0.1"