mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +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>
40 lines
1.1 KiB
TOML
40 lines
1.1 KiB
TOML
[package]
|
|
name = "eth2"
|
|
version = "0.1.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = { workspace = true }
|
|
|
|
[features]
|
|
default = ["lighthouse"]
|
|
lighthouse = []
|
|
|
|
[dependencies]
|
|
educe = { workspace = true }
|
|
eip_3076 = { workspace = true }
|
|
either = { workspace = true }
|
|
enr = { version = "0.13.0", features = ["ed25519"] }
|
|
eth2_keystore = { workspace = true }
|
|
ethereum_serde_utils = { workspace = true }
|
|
ethereum_ssz = { workspace = true }
|
|
ethereum_ssz_derive = { workspace = true }
|
|
futures = { workspace = true }
|
|
futures-util = "0.3.8"
|
|
libp2p-identity = { version = "0.2", features = ["peerid"] }
|
|
mediatype = "0.19.13"
|
|
multiaddr = "0.18.2"
|
|
pretty_reqwest_error = { workspace = true }
|
|
proto_array = { workspace = true }
|
|
rand = { workspace = true }
|
|
reqwest = { workspace = true }
|
|
reqwest-eventsource = "0.5.0"
|
|
sensitive_url = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
ssz_types = { workspace = true }
|
|
test_random_derive = { path = "../../common/test_random_derive" }
|
|
types = { workspace = true }
|
|
zeroize = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tokio = { workspace = true }
|