From 894001efe6e2a12b04fd851f0c7f27541d597e51 Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 3 Feb 2021 16:51:12 -0600 Subject: [PATCH] Update reqwest client lib --- http-signature-normalization-reqwest/Cargo.toml | 12 ++++++------ http-signature-normalization-reqwest/README.md | 6 ++++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/http-signature-normalization-reqwest/Cargo.toml b/http-signature-normalization-reqwest/Cargo.toml index 94dace6..eb60a0a 100644 --- a/http-signature-normalization-reqwest/Cargo.toml +++ b/http-signature-normalization-reqwest/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "http-signature-normalization-reqwest" description = "An HTTP Signatures library that leaves the signing to you" -version = "0.1.3" +version = "0.2.0" authors = ["asonix "] license-file = "LICENSE" readme = "README.md" @@ -21,19 +21,19 @@ name = "client" required-features = ["sha-2"] [dependencies] -base64 = { version = "0.12", optional = true } -bytes = "0.5.3" +base64 = { version = "0.13", optional = true } +bytes = "1" futures = "0.3.1" chrono = "0.4.10" http = "0.2.0" http-signature-normalization = { version = "0.5.1", path = ".." } -reqwest = "0.10.8" +reqwest = "0.11" sha2 = { version = "0.9", optional = true } sha3 = { version = "0.9", optional = true } thiserror = "1.0" -tokio = { version = "0.2", default-features = false, features = ["blocking"], optional = true } +tokio = { version = "1", default-features = false, features = ["rt"], optional = true } [dev-dependencies] pretty_env_logger = "0.4" -tokio = { version = "0.2", default-features = false, features = ["rt-threaded", "blocking", "macros"] } +tokio = { version = "1", default-features = false, features = ["rt-multi-thread", "macros"] } time = "0.2" diff --git a/http-signature-normalization-reqwest/README.md b/http-signature-normalization-reqwest/README.md index ca00781..66fa195 100644 --- a/http-signature-normalization-reqwest/README.md +++ b/http-signature-normalization-reqwest/README.md @@ -13,9 +13,11 @@ This crate provides extensions the RequestBuilder type from reqwest #### First, add this crate to your dependencies ```toml -thiserror = "0.1" -http-signature-normalization-reqwest = { version = "0.1.3", default-features = false, features = ["sha-2"] } +http-signature-normalization-reqwest = { version = "0.2.0", default-features = false, features = ["sha-2"] } +reqwest = "0.11" sha2 = "0.9" +thiserror = "0.1" +tokio = "1" ``` #### Then, use it in your client