From e16ad96ec3f71066d735614e4f83bbc5b7f3509c Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 28 Nov 2023 20:53:51 +0100 Subject: [PATCH] deps: use reqwest with rustls --- Cargo.lock | 12 ++++++------ crates/mev-share-sse/Cargo.toml | 7 +++++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2610699..e90f9dd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1807,7 +1807,7 @@ dependencies = [ [[package]] name = "mev-share-sse" -version = "0.1.5" +version = "0.1.6" dependencies = [ "async-sse", "bytes", @@ -1961,11 +1961,11 @@ dependencies = [ [[package]] name = "openssl" -version = "0.10.56" +version = "0.10.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "729b745ad4a5575dd06a3e1af1414bd330ee561c01b3899eb584baeaa8def17e" +checksum = "79a4c6c3a2b158f7f8f2a2fc5a969fa3a068df6fc9dbb4a43845436e3af7c800" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.4.0", "cfg-if", "foreign-types", "libc", @@ -1993,9 +1993,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.91" +version = "0.9.96" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "866b5f16f90776b9bb8dc1e1802ac6f0513de3a7a7465867bfbc563dc737faac" +checksum = "3812c071ba60da8b5677cc12bcb1d42989a65553772897a7e0355545a819838f" dependencies = [ "cc", "libc", diff --git a/crates/mev-share-sse/Cargo.toml b/crates/mev-share-sse/Cargo.toml index c460764..4a7fc27 100644 --- a/crates/mev-share-sse/Cargo.toml +++ b/crates/mev-share-sse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mev-share-sse" -version = "0.1.5" +version = "0.1.6" edition.workspace = true rust-version.workspace = true license.workspace = true @@ -15,7 +15,7 @@ ethers-core.workspace = true ## async async-sse = "5.1" -reqwest = { version = "0.11", features = ["stream", "json"] } +reqwest = { version = "0.11", default-features = false, features = ["stream", "json"] } futures-util = { workspace = true, features = ["io"] } http-types = { version = "2.12", default-features = false } tower = { workspace = true, optional = true } @@ -34,6 +34,9 @@ tokio = { workspace = true, features = ["time"] } tracing.workspace = true [features] +default = ["rustls"] +rustls = ["reqwest/rustls"] +native-tls = ["reqwest/native-tls"] server = ["hyper", "http", "tokio-stream", "tokio-util", "tower"] [dev-dependencies]