From d36701c44ee90bc2848d468d4230b0aecd6e64c7 Mon Sep 17 00:00:00 2001 From: Nicolas Delsaux Date: Tue, 19 Oct 2021 19:07:42 +0200 Subject: [PATCH] Unfortunatly, this didn't did the trick, let's try this version --- Cargo.lock | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 100 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 7a663e2..6905bf2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1353,6 +1353,21 @@ dependencies = [ "want 0.3.0", ] +[[package]] +name = "hyper-rustls" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f9f7a97316d44c0af9b0301e65010573a853a9fc97046d7331d7f6bc0fd5a64" +dependencies = [ + "futures-util", + "hyper 0.14.13", + "log", + "rustls", + "tokio 1.12.0", + "tokio-rustls", + "webpki", +] + [[package]] name = "hyper-tls" version = "0.5.0" @@ -2545,6 +2560,7 @@ dependencies = [ "http 0.2.1", "http-body 0.4.3", "hyper 0.14.13", + "hyper-rustls", "hyper-tls", "ipnet", "js-sys", @@ -2554,15 +2570,18 @@ dependencies = [ "native-tls", "percent-encoding 2.1.0", "pin-project-lite 0.2.7", + "rustls", "serde", "serde_json", "serde_urlencoded", "tokio 1.12.0", "tokio-native-tls", + "tokio-rustls", "url", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", + "webpki-roots", "winreg", ] @@ -2583,6 +2602,21 @@ version = "0.8.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2089e4031214d129e201f8c3c8c2fe97cd7322478a0d1cdf78e7029b0042efdb" +[[package]] +name = "ring" +version = "0.16.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ba5a8ec64ee89a76c98c549af81ff14813df09c3e6dc4766c3856da48597a0c" +dependencies = [ + "cc", + "lazy_static 1.4.0", + "libc", + "spin", + "untrusted", + "web-sys", + "winapi 0.3.9", +] + [[package]] name = "rrss2imap" version = "0.3.5-alpha.0" @@ -2646,6 +2680,19 @@ dependencies = [ "semver", ] +[[package]] +name = "rustls" +version = "0.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7" +dependencies = [ + "base64 0.13.0", + "log", + "ring", + "sct", + "webpki", +] + [[package]] name = "rustversion" version = "1.0.5" @@ -2695,6 +2742,16 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +[[package]] +name = "sct" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3042af939fca8c3453b7af0f1c66e533a15a86169e39de2657310ade8f98d3c" +dependencies = [ + "ring", + "untrusted", +] + [[package]] name = "security-framework" version = "2.3.1" @@ -2880,6 +2937,12 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "spin" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" + [[package]] name = "stable_deref_trait" version = "1.1.1" @@ -3283,6 +3346,17 @@ dependencies = [ "tokio-sync", ] +[[package]] +name = "tokio-rustls" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" +dependencies = [ + "rustls", + "tokio 1.12.0", + "webpki", +] + [[package]] name = "tokio-sync" version = "0.1.6" @@ -3539,6 +3613,12 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "402bb19d8e03f1d1a7450e2bd613980869438e0666331be3e073089124aa1adc" +[[package]] +name = "untrusted" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" + [[package]] name = "url" version = "2.2.2" @@ -3729,6 +3809,25 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "webpki" +version = "0.21.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1f50e1972865d6b1adb54167d1c8ed48606004c2c9d0ea5f1eeb34d95e863ef" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "webpki-roots" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aabe153544e473b775453675851ecc86863d2a81d786d741f6b76778f2a48940" +dependencies = [ + "webpki", +] + [[package]] name = "wepoll-sys-stjepang" version = "1.0.8" diff --git a/Cargo.toml b/Cargo.toml index 1469442..663c022 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,7 @@ tera = "1.5" lazy_static = "1.4" base64 = "0.13" # Seems like reqwests 0.10 do the futures jump (and I'm not ready for that) -reqwest = { version = "0.11", features = ["blocking", "native-tls"] } +reqwest = { version = "0.11", features = ["blocking", "rustls-tls"] } openssl-probe = "0.1" xhtmlchardet = "2.1" human-panic = "1.0"