This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal-reqsign.git
The following commit(s) were added to refs/heads/main by this push:
new e3d028e chore: upgrade reqwest to 0.13 (#675)
e3d028e is described below
commit e3d028e09461d74506c71fe951e337c1c13ec7e0
Author: tison <[email protected]>
AuthorDate: Sun Jan 11 21:36:57 2026 +0800
chore: upgrade reqwest to 0.13 (#675)
Signed-off-by: tison <[email protected]>
---
Cargo.toml | 4 ++--
services/aliyun-oss/Cargo.toml | 2 +-
services/aws-v4/Cargo.toml | 2 +-
services/azure-storage/Cargo.toml | 2 +-
services/google/Cargo.toml | 2 +-
services/google/src/sign_request.rs | 3 +--
services/tencent-cos/Cargo.toml | 2 +-
7 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index 2e331e7..f9ed398 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -44,7 +44,7 @@ anyhow = "1"
async-trait = "0.1"
base64 = "0.22"
bytes = "1"
-criterion = { version = "0.7.0", features = ["async_tokio", "html_reports"] }
+criterion = { version = "0.8.1", features = ["async_tokio", "html_reports"] }
dotenv = "0.15"
env_logger = "0.11"
form_urlencoded = "1"
@@ -57,7 +57,7 @@ percent-encoding = "2"
pretty_assertions = "1.3"
quick-xml = { version = "0.38.1", features = ["serialize"] }
rand = { version = "0.8.5" }
-reqwest = { version = "0.12", default-features = false }
+reqwest = { version = "0.13.1", default-features = false }
rsa = { version = "0.9.2", features = ["pkcs5", "sha2"] }
rust-ini = { version = "0.21" }
serde = { version = "1", features = ["derive"] }
diff --git a/services/aliyun-oss/Cargo.toml b/services/aliyun-oss/Cargo.toml
index 2c24011..4d57610 100644
--- a/services/aliyun-oss/Cargo.toml
+++ b/services/aliyun-oss/Cargo.toml
@@ -41,5 +41,5 @@ dotenv = { workspace = true }
env_logger = { workspace = true }
reqsign-file-read-tokio = { workspace = true }
reqsign-http-send-reqwest = { workspace = true }
-reqwest = { workspace = true, features = ["rustls-tls"] }
+reqwest = { workspace = true, features = ["default-tls"] }
tokio = { workspace = true, features = ["full"] }
diff --git a/services/aws-v4/Cargo.toml b/services/aws-v4/Cargo.toml
index 0302d70..476619b 100644
--- a/services/aws-v4/Cargo.toml
+++ b/services/aws-v4/Cargo.toml
@@ -55,7 +55,7 @@ env_logger = { workspace = true }
hex = { workspace = true }
pretty_assertions = { workspace = true }
reqsign-http-send-reqwest = { workspace = true }
-reqwest = { workspace = true, features = ["rustls-tls"] }
+reqwest = { workspace = true, features = ["default-tls"] }
sha2 = { workspace = true }
tempfile = { workspace = true }
tokio = { workspace = true, features = ["full"] }
diff --git a/services/azure-storage/Cargo.toml
b/services/azure-storage/Cargo.toml
index 98f2342..22b9ee8 100644
--- a/services/azure-storage/Cargo.toml
+++ b/services/azure-storage/Cargo.toml
@@ -51,5 +51,5 @@ env_logger = { workspace = true }
reqsign-command-execute-tokio = { workspace = true }
reqsign-file-read-tokio = { workspace = true }
reqsign-http-send-reqwest = { workspace = true }
-reqwest = { workspace = true, features = ["rustls-tls"] }
+reqwest = { workspace = true, features = ["default-tls"] }
tokio = { workspace = true, features = ["full"] }
diff --git a/services/google/Cargo.toml b/services/google/Cargo.toml
index 6015ba3..2228918 100644
--- a/services/google/Cargo.toml
+++ b/services/google/Cargo.toml
@@ -46,6 +46,6 @@ dotenv = { workspace = true }
env_logger = { workspace = true }
reqsign-file-read-tokio = { workspace = true }
reqsign-http-send-reqwest = { workspace = true }
-reqwest = { workspace = true, features = ["rustls-tls"] }
+reqwest = { workspace = true, features = ["default-tls"] }
sha2 = { workspace = true }
tokio = { workspace = true, features = ["full"] }
diff --git a/services/google/src/sign_request.rs
b/services/google/src/sign_request.rs
index a5367d5..1062bcc 100644
--- a/services/google/src/sign_request.rs
+++ b/services/google/src/sign_request.rs
@@ -19,7 +19,6 @@ use http::header;
use jsonwebtoken::{Algorithm, EncodingKey, Header as JwtHeader};
use log::debug;
use percent_encoding::{percent_decode_str, utf8_percent_encode};
-use rand::thread_rng;
use rsa::pkcs1v15::SigningKey;
use rsa::pkcs8::DecodePrivateKey;
use rsa::signature::RandomizedSigner;
@@ -243,7 +242,7 @@ impl RequestSigner {
}
fn sign_with_service_account(private_key_pem: &str, string_to_sign: &str)
-> Result<String> {
- let mut rng = thread_rng();
+ let mut rng = rand::thread_rng();
let private_key =
rsa::RsaPrivateKey::from_pkcs8_pem(private_key_pem).map_err(|e| {
reqsign_core::Error::unexpected("failed to parse private
key").with_source(e)
})?;
diff --git a/services/tencent-cos/Cargo.toml b/services/tencent-cos/Cargo.toml
index aea3443..53d797c 100644
--- a/services/tencent-cos/Cargo.toml
+++ b/services/tencent-cos/Cargo.toml
@@ -42,5 +42,5 @@ env_logger = { workspace = true }
reqsign-core = { workspace = true }
reqsign-file-read-tokio = { workspace = true }
reqsign-http-send-reqwest = { workspace = true }
-reqwest = { workspace = true, features = ["rustls-tls"] }
+reqwest = { workspace = true, features = ["default-tls"] }
tokio = { workspace = true, features = ["full"] }