mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
Fixes #7001. Mostly mechanical replacement of `derivative` attributes with `educe` ones. ### **Attribute Syntax Changes** ```rust // Bounds: = "..." → (...) #[derivative(Hash(bound = "E: EthSpec"))] #[educe(Hash(bound(E: EthSpec)))] // Ignore: = "ignore" → (ignore) #[derivative(PartialEq = "ignore")] #[educe(PartialEq(ignore))] // Default values: value = "..." → expression = ... #[derivative(Default(value = "ForkName::Base"))] #[educe(Default(expression = ForkName::Base))] // Methods: format_with/compare_with = "..." → method(...) #[derivative(Debug(format_with = "fmt_peer_set_as_len"))] #[educe(Debug(method(fmt_peer_set_as_len)))] // Empty bounds: removed entirely, educe can infer appropriate bounds #[derivative(Default(bound = ""))] #[educe(Default)] // Transparent debug: manual implementation (educe doesn't support it) #[derivative(Debug = "transparent")] // Replaced with manual Debug impl that delegates to inner field ``` **Note**: Some bounds use strings (`bound("E: EthSpec")`) for superstruct compatibility (`expected ','` errors). Co-Authored-By: Javier Chávarri <javier.chavarri@gmail.com> Co-Authored-By: Mac L <mjladson@pm.me>
45 lines
1.2 KiB
TOML
45 lines
1.2 KiB
TOML
[package]
|
|
name = "state_processing"
|
|
version = "0.2.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>", "Michael Sproul <michael@sigmaprime.io>"]
|
|
edition = { workspace = true }
|
|
|
|
[features]
|
|
default = ["legacy-arith"]
|
|
fake_crypto = ["bls/fake_crypto"]
|
|
legacy-arith = ["types/legacy-arith"]
|
|
arbitrary-fuzz = [
|
|
"types/arbitrary-fuzz",
|
|
"merkle_proof/arbitrary",
|
|
"ethereum_ssz/arbitrary",
|
|
"ssz_types/arbitrary",
|
|
"tree_hash/arbitrary",
|
|
]
|
|
portable = ["bls/supranational-portable"]
|
|
|
|
[dependencies]
|
|
arbitrary = { workspace = true }
|
|
bls = { workspace = true }
|
|
educe = { workspace = true }
|
|
ethereum_hashing = { workspace = true }
|
|
ethereum_ssz = { workspace = true }
|
|
ethereum_ssz_derive = { workspace = true }
|
|
int_to_bytes = { workspace = true }
|
|
integer-sqrt = "0.1.5"
|
|
itertools = { workspace = true }
|
|
merkle_proof = { workspace = true }
|
|
metrics = { workspace = true }
|
|
rand = { workspace = true }
|
|
rayon = { workspace = true }
|
|
safe_arith = { workspace = true }
|
|
smallvec = { workspace = true }
|
|
ssz_types = { workspace = true }
|
|
test_random_derive = { path = "../../common/test_random_derive" }
|
|
tracing = { workspace = true }
|
|
tree_hash = { workspace = true }
|
|
types = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
beacon_chain = { workspace = true }
|
|
tokio = { workspace = true }
|