diff --git a/Cargo.lock b/Cargo.lock index 1dd4c0d..ddf928b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4149,6 +4149,7 @@ dependencies = [ "bytes", "chrono", "cpal", + "rustls", "serde", "serde_json", "tokio", diff --git a/crates/wzp-client/Cargo.toml b/crates/wzp-client/Cargo.toml index 6726cb2..d31b6d4 100644 --- a/crates/wzp-client/Cargo.toml +++ b/crates/wzp-client/Cargo.toml @@ -21,6 +21,7 @@ anyhow = "1" serde = { workspace = true } serde_json = "1" chrono = "0.4" +rustls = { version = "0.23", default-features = false, features = ["ring", "std"] } cpal = { version = "0.15", optional = true } [features] diff --git a/crates/wzp-client/src/cli.rs b/crates/wzp-client/src/cli.rs index 727d0e7..d26c30a 100644 --- a/crates/wzp-client/src/cli.rs +++ b/crates/wzp-client/src/cli.rs @@ -227,6 +227,9 @@ fn parse_args() -> CliArgs { #[tokio::main] async fn main() -> anyhow::Result<()> { tracing_subscriber::fmt().init(); + rustls::crypto::ring::default_provider() + .install_default() + .expect("failed to install rustls crypto provider"); let cli = parse_args();