Skip to content

Commit

Permalink
Libs(Rust, CLI): switch to rustls
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-onelson committed Dec 24, 2024
1 parent 9b7df79 commit 333c4ba
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 6 deletions.
104 changes: 101 additions & 3 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions svix-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ idna_adapter = "=1.1.0"
indoc = "2.0.5"
open = "5.3.1"
rand = "0.8.5"
reqwest = "0.12.9"
reqwest = { version = "0.12.9", features = ["rustls-tls"] }
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.133"
svix = { path = "../rust" }
svix = { path = "../rust", default-features = false, features = ["http1", "rustls-tls"] }
tokio = { version = "1.42.0", features = ["full"] }
tokio-tungstenite = { version = "0.26.0", features = ["native-tls"] }
tokio-tungstenite = { version = "0.26.0", features = ["rustls-tls-webpki-roots"] }
toml = "0.8.19"
url = "2.5.4"
1 change: 1 addition & 0 deletions svix-cli/src/relay/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ impl WsConnection {
let request = websocket_url.to_string().into_client_request()?;
let (stream, _resp) = connect_async(request)
.await
.inspect_err(|e| eprintln!("{e}"))
.context("failed to connect to websocket server")?;

Ok(Self { stream })
Expand Down

0 comments on commit 333c4ba

Please sign in to comment.