diff --git a/Cargo.lock b/Cargo.lock index ea5b02aaab..ec2cd8e0f1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1061,6 +1061,7 @@ dependencies = [ "futures-util", "hex", "nostr", + "rustls", "serde_json", "thiserror 2.0.18", "tokio", diff --git a/crates/buzz-pairing-cli/Cargo.toml b/crates/buzz-pairing-cli/Cargo.toml index 58fefe32d9..e7c3927207 100644 --- a/crates/buzz-pairing-cli/Cargo.toml +++ b/crates/buzz-pairing-cli/Cargo.toml @@ -16,6 +16,7 @@ buzz-core = { workspace = true } nostr = { workspace = true } tokio = { workspace = true } tokio-tungstenite = { workspace = true } +rustls = { version = "0.23", default-features = false, features = ["ring", "std"] } futures-util = { workspace = true } serde_json = { workspace = true } url = { workspace = true } diff --git a/crates/buzz-pairing-cli/src/main.rs b/crates/buzz-pairing-cli/src/main.rs index 1eb9d215f9..4605e57bf7 100644 --- a/crates/buzz-pairing-cli/src/main.rs +++ b/crates/buzz-pairing-cli/src/main.rs @@ -96,6 +96,9 @@ enum CliError { #[tokio::main] async fn main() { + rustls::crypto::ring::default_provider() + .install_default() + .expect("failed to install rustls crypto provider"); let cli = Cli::parse(); if let Err(e) = run(cli.command).await { eprintln!("error: {e}");