Skip to content

Commit

Permalink
feat(alloy): forward rustls & native reqwest TLS configuration to…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
zerosnacks committed Jun 25, 2024
1 parent b69b5a3 commit 4b5541e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions crates/alloy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -160,7 +173,6 @@ provider-txpool-api = [
"alloy-provider?/txpool-api",
"rpc-types-txpool",
]

provider-anvil-node = [
"providers",
"provider-anvil-api",
Expand Down

0 comments on commit 4b5541e

Please sign in to comment.