Skip to content
Merged
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
5 changes: 3 additions & 2 deletions svix-cli/Cargo.lock

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

1 change: 1 addition & 0 deletions svix-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ indoc = "2.0.5"
open = "5.3.1"
rand = "0.8.5"
reqwest = { version = "0.12.9", features = ["rustls-tls", "json", "charset", "http2", "macos-system-configuration"], default-features = false }
rustls = "0.23.34"
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.133"
svix = { path = "../rust" }
Expand Down
6 changes: 6 additions & 0 deletions svix-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ enum RootCommands {
async fn main() -> Result<()> {
let cli = Cli::parse();
let color_mode = cli.color_mode();

// rustls requires a crypto backend ("provider") choice to be made explicitly
// The Svix SDK uses the default provider if a default is not installed, but
// we use reqwest directly in some code paths, which does not do this.
_ = rustls::crypto::aws_lc_rs::default_provider().install_default();

// XXX: cfg can give an Err in certain situations.
// Assigning the variable here since several match arms need a `&Config` but the rest of them
// won't care/are still usable if the config doesn't exist.
Expand Down
Loading