From a4f7b2e10f9e3a7cbf5952b4fc655073260da873 Mon Sep 17 00:00:00 2001 From: Esra Fernau Date: Tue, 1 Jun 2021 01:43:10 +0200 Subject: [PATCH 1/2] bump dependency: async-tls, rustls_crate, async-h1, async-native-tls, isahc --- Cargo.toml | 10 +++++----- src/isahc.rs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0a49518..2320356 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,15 +42,15 @@ log = "0.4.7" cfg-if = "1.0.0" # h1_client -async-h1 = { version = "2.0.0", optional = true } +async-h1 = { version = "2.3.2", optional = true } async-std = { version = "1.6.0", default-features = false, optional = true } -async-native-tls = { version = "0.3.1", optional = true } +async-native-tls = { version = "0.3.3", optional = true } deadpool = { version = "0.7.0", optional = true } futures = { version = "0.3.8", optional = true } # h1_client_rustls -async-tls = { version = "0.10.0", optional = true } -rustls_crate = { version = "0.18", optional = true, package = "rustls" } +async-tls = { version = "0.11.0", optional = true } +rustls_crate = { version = "0.19.1", optional = true, package = "rustls" } # hyper_client hyper = { version = "0.13.6", features = ["tcp"], optional = true } @@ -60,7 +60,7 @@ tokio = { version = "0.2", features = ["time"], optional = true } # curl_client [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -isahc = { version = "0.9", optional = true, default-features = false, features = ["http2"] } +isahc = { version = "1.4.0", optional = true, default-features = false, features = ["http2"] } # wasm_client [target.'cfg(target_arch = "wasm32")'.dependencies] diff --git a/src/isahc.rs b/src/isahc.rs index 30afdc1..4482aae 100644 --- a/src/isahc.rs +++ b/src/isahc.rs @@ -53,8 +53,8 @@ impl HttpClient for IsahcClient { let body = req.take_body(); let body = match body.len() { - Some(len) => isahc::Body::from_reader_sized(body, len as u64), - None => isahc::Body::from_reader(body), + Some(len) => isahc::AsyncBody::from_reader_sized(body, len as u64), + None => isahc::AsyncBody::from_reader(body), }; let request = builder.body(body).unwrap(); From ae5109efc0e04e23f5b4ba276a3a2f34baeb8286 Mon Sep 17 00:00:00 2001 From: Esra Fernau Date: Sun, 17 Oct 2021 17:43:55 +0200 Subject: [PATCH 2/2] exclude semver-major changes & change nativ-tls vesion --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2320356..ff363db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,7 @@ cfg-if = "1.0.0" # h1_client async-h1 = { version = "2.3.2", optional = true } async-std = { version = "1.6.0", default-features = false, optional = true } -async-native-tls = { version = "0.3.3", optional = true } +async-native-tls = { version = "0.3", optional = true } deadpool = { version = "0.7.0", optional = true } futures = { version = "0.3.8", optional = true } @@ -60,7 +60,7 @@ tokio = { version = "0.2", features = ["time"], optional = true } # curl_client [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -isahc = { version = "1.4.0", optional = true, default-features = false, features = ["http2"] } +isahc = { version = "0.9", optional = true, default-features = false, features = ["http2"] } # wasm_client [target.'cfg(target_arch = "wasm32")'.dependencies]