From 3cf09f172b79243ef4dbfced029881bda439256a Mon Sep 17 00:00:00 2001 From: Arsenii Kulikov Date: Mon, 8 Apr 2024 23:54:28 +0400 Subject: [PATCH 1/2] enable default-tls for alloy-provider/reqwest feature --- crates/provider/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/provider/Cargo.toml b/crates/provider/Cargo.toml index f0bff807187..f2a48fc9cef 100644 --- a/crates/provider/Cargo.toml +++ b/crates/provider/Cargo.toml @@ -55,6 +55,7 @@ reqwest = [ "dep:url", "dep:alloy-transport-http", "alloy-rpc-client/reqwest", + "alloy-transport-http/reqwest-default-tls", ] hyper = ["dep:alloy-transport-http", "dep:url", "alloy-rpc-client/hyper"] ws = ["pubsub", "alloy-rpc-client/ws", "alloy-transport-ws"] From 4f0c249cbbfeff36791ed2a2ab0ef76fc782d424 Mon Sep 17 00:00:00 2001 From: Arsenii Kulikov Date: Tue, 9 Apr 2024 12:14:05 +0400 Subject: [PATCH 2/2] update features --- crates/provider/Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/provider/Cargo.toml b/crates/provider/Cargo.toml index f2a48fc9cef..0877d4c15a7 100644 --- a/crates/provider/Cargo.toml +++ b/crates/provider/Cargo.toml @@ -48,15 +48,17 @@ tracing-subscriber = { workspace = true, features = ["fmt"] } tempfile.workspace = true [features] -default = ["reqwest"] +default = ["reqwest", "reqwest-default-tls"] pubsub = ["alloy-rpc-client/pubsub", "dep:alloy-pubsub"] reqwest = [ "dep:reqwest", "dep:url", "dep:alloy-transport-http", "alloy-rpc-client/reqwest", - "alloy-transport-http/reqwest-default-tls", ] hyper = ["dep:alloy-transport-http", "dep:url", "alloy-rpc-client/hyper"] ws = ["pubsub", "alloy-rpc-client/ws", "alloy-transport-ws"] ipc = ["pubsub", "alloy-rpc-client/ipc", "alloy-transport-ipc"] +reqwest-default-tls = ["alloy-transport-http?/reqwest-default-tls"] +reqwest-rustls-tls = ["alloy-transport-http?/reqwest-rustls-tls"] +reqwest-native-tls = ["alloy-transport-http?/reqwest-native-tls"]