Skip to content

Commit

Permalink
Propagate arbitrary (#330)
Browse files Browse the repository at this point in the history
Based on #329

<!-- ** Please select "Allow edits from maintainers" in the PR Options
** -->

## Motivation

Incomplete arbitrary feature propagation

## Solution

Enables `alloy-primitives/arbitrary` in local `arbtirary` feature


## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes

---------

Co-authored-by: Matthias Seitz <[email protected]>
  • Loading branch information
emhane and mattsse authored Dec 3, 2024
1 parent cd8cd63 commit 9c08a6e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
9 changes: 8 additions & 1 deletion crates/consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ default = ["std"]
std = ["alloy-eips/std", "alloy-consensus/std", "derive_more/std"]
k256 = ["alloy-primitives/k256", "alloy-consensus/k256"]
kzg = ["alloy-eips/kzg", "alloy-consensus/kzg", "std"]
arbitrary = ["std", "dep:arbitrary", "alloy-consensus/arbitrary", "alloy-eips/arbitrary", "alloy-primitives/rand"]
arbitrary = [
"std",
"dep:arbitrary",
"alloy-consensus/arbitrary",
"alloy-eips/arbitrary",
"alloy-primitives/rand",
"alloy-primitives/arbitrary",
]
serde = ["dep:serde", "dep:alloy-serde", "alloy-primitives/serde", "alloy-consensus/serde", "alloy-eips/serde"]
serde-bincode-compat = ["serde_with"]
9 changes: 8 additions & 1 deletion crates/protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ test-utils = [
"dep:spin",
"dep:tracing-subscriber",
]
arbitrary = ["std", "dep:arbitrary", "alloy-consensus/arbitrary", "alloy-eips/arbitrary", "alloy-primitives/rand"]
arbitrary = [
"std",
"dep:arbitrary",
"alloy-consensus/arbitrary",
"alloy-eips/arbitrary",
"alloy-primitives/rand",
"alloy-primitives/arbitrary",
]
std = ["op-alloy-consensus/std", "op-alloy-genesis/std", "brotli/std"]
serde = ["dep:serde", "dep:alloy-serde", "op-alloy-consensus/serde", "op-alloy-genesis/serde"]
7 changes: 6 additions & 1 deletion crates/rpc-types-engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,9 @@ serde = [
"op-alloy-protocol/serde",
"alloy-rpc-types-engine/serde",
]
arbitrary = ["std", "dep:arbitrary", "alloy-primitives/arbitrary", "alloy-primitives/rand"]
arbitrary = [
"std",
"dep:arbitrary",
"alloy-primitives/arbitrary",
"alloy-primitives/rand",
]

0 comments on commit 9c08a6e

Please sign in to comment.