fix: install rustls crypto provider in wzp-client (same as relay/web)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Siavash Sameni
2026-03-28 14:45:26 +04:00
parent 0dc381e948
commit 6d5ee55393
3 changed files with 5 additions and 0 deletions

1
Cargo.lock generated
View File

@@ -4149,6 +4149,7 @@ dependencies = [
"bytes", "bytes",
"chrono", "chrono",
"cpal", "cpal",
"rustls",
"serde", "serde",
"serde_json", "serde_json",
"tokio", "tokio",

View File

@@ -21,6 +21,7 @@ anyhow = "1"
serde = { workspace = true } serde = { workspace = true }
serde_json = "1" serde_json = "1"
chrono = "0.4" chrono = "0.4"
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
cpal = { version = "0.15", optional = true } cpal = { version = "0.15", optional = true }
[features] [features]

View File

@@ -227,6 +227,9 @@ fn parse_args() -> CliArgs {
#[tokio::main] #[tokio::main]
async fn main() -> anyhow::Result<()> { async fn main() -> anyhow::Result<()> {
tracing_subscriber::fmt().init(); tracing_subscriber::fmt().init();
rustls::crypto::ring::default_provider()
.install_default()
.expect("failed to install rustls crypto provider");
let cli = parse_args(); let cli = parse_args();