Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/buzz-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ path = "src/main.rs"
# CLI argument parsing — derive macros + env var support (BUZZ_API_TOKEN auto-wired)
clap = { version = "4", features = ["derive", "env"] }

# Explicit rustls dep so the CLI can install the ring CryptoProvider at startup
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }

# HTTP client — async REST calls to the relay
reqwest = { workspace = true, features = ["json"] }

Expand Down
5 changes: 5 additions & 0 deletions crates/buzz-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ where
I: IntoIterator<Item = S>,
S: Into<std::ffi::OsString> + Clone,
{
// Install the ring CryptoProvider for rustls. The workspace enables more
// than one rustls crypto backend, so rustls cannot auto-select a
// process-level provider and panics on the first TLS-capable connection
// without this.
let _ = rustls::crypto::ring::default_provider().install_default();
let cli = match Cli::try_parse_from(args) {
Ok(cli) => cli,
Err(e) => {
Expand Down