From 6709c766f866f502979c0f5ac786a79b528020fc Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 25 Oct 2022 16:19:16 +0200 Subject: [PATCH] Fix reqwest tls --- Cargo.lock | 46 ++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 43c84d3..46ed05e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -863,6 +863,19 @@ dependencies = [ "want", ] +[[package]] +name = "hyper-rustls" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87c48c02e0dc5e3b849a2041db3029fd066650f8f717c07bf8ed78ccb895cac" +dependencies = [ + "http", + "hyper", + "rustls", + "tokio", + "tokio-rustls", +] + [[package]] name = "iana-time-zone" version = "0.1.51" @@ -1773,6 +1786,7 @@ dependencies = [ "http", "http-body", "hyper", + "hyper-rustls", "ipnet", "js-sys", "log", @@ -1783,15 +1797,18 @@ dependencies = [ "pin-project-lite", "proc-macro-hack", "rustls", + "rustls-pemfile", "serde", "serde_json", "serde_urlencoded", "tokio", + "tokio-rustls", "tower-service", "url", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", + "webpki-roots", "winreg", ] @@ -1916,6 +1933,15 @@ dependencies = [ "webpki", ] +[[package]] +name = "rustls-pemfile" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0864aeff53f8c05aa08d86e5ef839d3dfcf07aeba2db32f12db0ef716e87bd55" +dependencies = [ + "base64", +] + [[package]] name = "rustversion" version = "1.0.9" @@ -2308,6 +2334,17 @@ dependencies = [ "syn", ] +[[package]] +name = "tokio-rustls" +version = "0.23.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" +dependencies = [ + "rustls", + "tokio", + "webpki", +] + [[package]] name = "tokio-stream" version = "0.1.11" @@ -2660,6 +2697,15 @@ dependencies = [ "untrusted", ] +[[package]] +name = "webpki-roots" +version = "0.22.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "368bfe657969fb01238bb756d351dcade285e0f6fcbd36dcb23359a5169975be" +dependencies = [ + "webpki", +] + [[package]] name = "winapi" version = "0.2.8" diff --git a/Cargo.toml b/Cargo.toml index bbe1613..8dbc8ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ anyhow = "1.0.66" rocket = { version = "0.5.0-rc.2", default-features = false } rocket_dyn_templates = { version = "0.1.0-rc.2", features = ["handlebars"] } serde = "1.0.147" -reqwest = { version = "0.11.12", features = ["rustls", "json", "cookies", "multipart"], default-features = false } +reqwest = { version = "0.11.12", features = ["rustls-tls", "json", "cookies", "multipart"], default-features = false } serde_json = "1.0.87" comrak = { version = "0.14.0", default-features = false } chrono = "0.4.22"