From c32ca082203c950b8483daf69329f811c3d80e5a Mon Sep 17 00:00:00 2001 From: Ashley Ruglys Date: Mon, 22 May 2023 16:16:54 +1200 Subject: [PATCH] Update dependencies --- Cargo.toml | 40 ++++++++++++++++++++-------------------- src/isahc.rs | 2 +- src/wasm.rs | 2 +- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4c47488..62e8cfc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,27 +35,27 @@ rustls = ["async-tls", "rustls_crate"] unstable-config = [] # deprecated [dependencies] -async-trait = "0.1.37" -http-types = "2.3.0" -log = "0.4.7" +async-trait = "0.1.68" +http-types = { git = "https://github.com/http-rs/http-types", rev = "ac5d645ce5294554b86ebd49233d3ec01665d1d7" } +log = "0.4.17" cfg-if = "1.0.0" # h1_client -async-h1 = { version = "2.0.0", optional = true } -async-std = { version = "1.6.0", default-features = false, optional = true } -async-native-tls = { version = "0.3.1", optional = true } -dashmap = { version = "5.3.4", optional = true } +async-h1 = { version = "2.3.3", optional = true } +async-std = { version = "1.12.0", default-features = false, optional = true } +async-native-tls = { version = "0.3.3", optional = true } +dashmap = { version = "5.4.0", optional = true } deadpool = { version = "0.7.0", optional = true } -futures = { version = "0.3.8", optional = true } +futures = { version = "0.3.28", optional = true } # h1_client_rustls async-tls = { version = "0.11", optional = true } rustls_crate = { version = "0.19", optional = true, package = "rustls" } # hyper_client -hyper = { version = "0.13.6", features = ["tcp"], optional = true } +hyper = { version = "0.13.10", features = ["tcp"], optional = true } hyper-tls = { version = "0.4.3", optional = true } -futures-util = { version = "0.3.5", features = ["io"], optional = true } +futures-util = { version = "0.3.28", features = ["io"], optional = true } tokio = { version = "0.2", features = ["time"], optional = true } # curl_client @@ -64,14 +64,14 @@ isahc = { version = "0.9", optional = true, default-features = false, features = # wasm_client [target.'cfg(target_arch = "wasm32")'.dependencies] -js-sys = { version = "0.3.25", optional = true } -wasm-bindgen = { version = "0.2.48", optional = true } -wasm-bindgen-futures = { version = "0.4.5", optional = true } -futures = { version = "0.3.1", optional = true } +js-sys = { version = "0.3.63", optional = true } +wasm-bindgen = { version = "0.2.86", optional = true } +wasm-bindgen-futures = { version = "0.4.36", optional = true } +futures = { version = "0.3.28", optional = true } send_wrapper = { version = "0.6.0", features = ["futures"] } [target.'cfg(target_arch = "wasm32")'.dependencies.web-sys] -version = "0.3.25" +version = "0.3.63" optional = true features = [ "AbortSignal", @@ -90,11 +90,11 @@ features = [ ] [dev-dependencies] -async-std = { version = "1.6.0", features = ["unstable", "attributes"] } -portpicker = "0.1.0" -tide = { version = "0.15.0", default-features = false, features = ["h1-server"] } -tide-rustls = { version = "0.1.4" } -tokio = { version = "0.2.21", features = ["macros"] } +async-std = { version = "1.12.0", features = ["unstable", "attributes"] } +portpicker = "0.1.1" +tide = { version = "0.15.1", default-features = false, features = ["h1-server"] } +tide-rustls = { version = "0.1.6" } +tokio = { version = "0.2.25", features = ["macros"] } serde = "1.0" serde_json = "1.0" mockito = "0.23.3" diff --git a/src/isahc.rs b/src/isahc.rs index 92b0f1a..bb7079c 100644 --- a/src/isahc.rs +++ b/src/isahc.rs @@ -62,7 +62,7 @@ impl HttpClient for IsahcClient { let body = Body::from_reader(BufReader::new(body), None); let mut response = http_types::Response::new(parts.status.as_u16()); for (name, value) in &parts.headers { - response.append_header(name.as_str(), value.to_str().unwrap()); + response.append_header(name.as_str(), value.to_str().unwrap())?; } if let Some(metrics) = maybe_metrics { diff --git a/src/wasm.rs b/src/wasm.rs index 2b95ce6..6294184 100644 --- a/src/wasm.rs +++ b/src/wasm.rs @@ -8,7 +8,7 @@ use send_wrapper::SendWrapper; use crate::Config; -use super::{http_types::Headers, Body, Error, HttpClient, Request, Response}; +use super::{http_types::headers::Headers, Body, Error, HttpClient, Request, Response}; /// WebAssembly HTTP Client. #[derive(Debug)]