From 4b5541e231297d055187d2955892673a8ad2eddf Mon Sep 17 00:00:00 2001 From: zerosnacks <95942363+zerosnacks@users.noreply.github.com> Date: Tue, 25 Jun 2024 17:28:20 +0200 Subject: [PATCH] feat(alloy): forward `rustls` & `native` reqwest TLS configuration to Alloy's metacrate (#969) * add reqwest feature flags to metacrate * enable reqwest when enabling sub-flag for consistency * remove redundant reqwest entry * avoid breaking changes --- crates/alloy/Cargo.toml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/crates/alloy/Cargo.toml b/crates/alloy/Cargo.toml index dfe76bed89e..e6c2ba9e3f9 100644 --- a/crates/alloy/Cargo.toml +++ b/crates/alloy/Cargo.toml @@ -99,6 +99,20 @@ reqwest = [ "alloy-transport-http?/reqwest", "alloy-transport-http?/reqwest-default-tls", ] +reqwest-rustls-tls = [ + "dep:reqwest", + "alloy-rpc-client?/reqwest", + "alloy-provider?/reqwest", + "alloy-transport-http?/reqwest", + "alloy-transport-http?/reqwest-rustls-tls", +] +reqwest-native-tls = [ + "dep:reqwest", + "alloy-rpc-client?/reqwest", + "alloy-provider?/reqwest", + "alloy-transport-http?/reqwest", + "alloy-transport-http?/reqwest-native-tls", +] hyper = [ "dep:hyper", "alloy-rpc-client?/hyper", @@ -129,7 +143,6 @@ providers = ["dep:alloy-provider", "rpc-client", "eips"] provider-http = ["providers", "transport-http"] provider-ws = ["providers", "alloy-provider?/ws", "transport-ws"] provider-ipc = ["providers", "alloy-provider?/ipc", "transport-ipc"] - provider-admin-api = [ "providers", "alloy-provider?/admin-api", @@ -160,7 +173,6 @@ provider-txpool-api = [ "alloy-provider?/txpool-api", "rpc-types-txpool", ] - provider-anvil-node = [ "providers", "provider-anvil-api",