From b1fbe436b168a25c5989663d5d6568b95f4939ed Mon Sep 17 00:00:00 2001 From: sprites0 <199826320+sprites0@users.noreply.github.com> Date: Sun, 22 Jun 2025 19:08:34 -0400 Subject: [PATCH] chore: Use synchronous http library (ureq) instead --- Cargo.lock | 41 ++++++++++++++++++++++++++++++++++++++++- Cargo.toml | 2 +- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index efccf1993..c98771364 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8732,7 +8732,6 @@ dependencies = [ "once_cell", "parity-bytes", "parking_lot", - "reqwest", "reth", "reth-basic-payload-builder", "reth-chainspec", @@ -8777,6 +8776,7 @@ dependencies = [ "tokio", "tokio-stream", "tracing", + "ureq", ] [[package]] @@ -9221,6 +9221,15 @@ dependencies = [ "security-framework", ] +[[package]] +name = "rustls-pemfile" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" +dependencies = [ + "rustls-pki-types", +] + [[package]] name = "rustls-pki-types" version = "1.12.0" @@ -10646,6 +10655,36 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" +[[package]] +name = "ureq" +version = "3.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f0fde9bc91026e381155f8c67cb354bcd35260b2f4a29bcc84639f762760c39" +dependencies = [ + "base64", + "flate2", + "log", + "percent-encoding", + "rustls", + "rustls-pemfile", + "rustls-pki-types", + "ureq-proto", + "utf-8", + "webpki-roots 0.26.11", +] + +[[package]] +name = "ureq-proto" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59db78ad1923f2b1be62b6da81fe80b173605ca0d57f85da2e005382adf693f7" +dependencies = [ + "base64", + "http", + "httparse", + "log", +] + [[package]] name = "url" version = "2.5.4" diff --git a/Cargo.toml b/Cargo.toml index a9d4fc9db..e7eee0a73 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -91,7 +91,7 @@ tokio-stream = "0.1" tracing = "0.1" rmp-serde = "1.0.0" lz4_flex = "0.11.3" -reqwest = { version = "0.12", default-features = false } +ureq = "3.0.12" [target.'cfg(unix)'.dependencies]