Skip to content

Commit

Permalink
feat: re-export more features from alloy-core (#1423)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
  • Loading branch information
DaniPopes and mattsse authored Oct 3, 2024
1 parent 204a66a commit 8132d69
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions crates/alloy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ alloy-transport-ws = { workspace = true, optional = true }
# ----------------------------------------- Configuration ---------------------------------------- #

[features]
default = ["std", "reqwest"]
default = ["std", "reqwest", "alloy-core/default"]

# std
std = [
Expand All @@ -80,11 +80,11 @@ full = [
"k256",
"kzg",
"network",
"provider-http", # includes `providers`
"provider-ws", # includes `providers`
"provider-ipc", # includes `providers`
"rpc-types", # includes `rpc-types-eth`
"signer-local", # includes `signers`
"provider-http",
"provider-ws",
"provider-ipc",
"rpc-types",
"signer-local",
]

# configuration
Expand Down Expand Up @@ -257,22 +257,21 @@ json-abi = ["alloy-core/json-abi"]
json = ["alloy-core/json"]
sol-types = ["alloy-core/sol-types"]

tiny-keccak = ["alloy-core/tiny-keccak"]
native-keccak = ["alloy-core/native-keccak"]
asm-keccak = ["alloy-core/asm-keccak"]
native-keccak = ["alloy-core/native-keccak"]
sha3-keccak = ["alloy-core/sha3-keccak"]
tiny-keccak = ["alloy-core/tiny-keccak"]

map = ["alloy-core/map"]
map-hashbrown = ["alloy-core/map-hashbrown"]
map-indexmap = ["alloy-core/map-indexmap"]
map-fxhash = ["alloy-core/map-fxhash"]

postgres = ["alloy-core/postgres"]
getrandom = ["alloy-core/getrandom"]
rand = ["alloy-core/rand"]
rlp = ["alloy-core/rlp"]
serde = ["alloy-core/serde", "alloy-eips?/serde", "dep:alloy-serde"]
ssz = ["alloy-rpc-types?/ssz"]
arbitrary = [
"alloy-core/arbitrary",
"alloy-consensus?/arbitrary",
"alloy-eips?/arbitrary",
"alloy-rpc-types?/arbitrary",
]
k256 = [
"alloy-core/k256",
"alloy-consensus?/k256",
Expand All @@ -290,3 +289,11 @@ eip712 = [
# TODO: https://github.com/alloy-rs/alloy/issues/201
# "alloy-signer-trezor?/eip712",
]

arbitrary = [
"alloy-core/arbitrary",
"alloy-consensus?/arbitrary",
"alloy-eips?/arbitrary",
"alloy-rpc-types?/arbitrary",
]
postgres = ["alloy-core/postgres"]

0 comments on commit 8132d69

Please sign in to comment.