mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 16:51:41 +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>
63 lines
1.9 KiB
TOML
63 lines
1.9 KiB
TOML
[package]
|
|
name = "network"
|
|
version = "0.2.0"
|
|
authors = ["Sigma Prime <contact@sigmaprime.io>"]
|
|
edition = { workspace = true }
|
|
|
|
[features]
|
|
# NOTE: This can be run via cargo build --bin lighthouse --features network/disable-backfill
|
|
disable-backfill = []
|
|
fork_from_env = ["beacon_chain/fork_from_env"]
|
|
portable = ["beacon_chain/portable"]
|
|
test_logger = []
|
|
|
|
[dependencies]
|
|
alloy-primitives = { workspace = true }
|
|
alloy-rlp = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
async-channel = { workspace = true }
|
|
beacon_chain = { workspace = true }
|
|
beacon_processor = { workspace = true }
|
|
delay_map = { workspace = true }
|
|
educe = { workspace = true }
|
|
ethereum_ssz = { workspace = true }
|
|
execution_layer = { workspace = true }
|
|
fnv = { workspace = true }
|
|
futures = { workspace = true }
|
|
hex = { workspace = true }
|
|
igd-next = { version = "0.16", features = ["aio_tokio"] }
|
|
itertools = { workspace = true }
|
|
lighthouse_network = { workspace = true }
|
|
lighthouse_tracing = { workspace = true }
|
|
logging = { workspace = true }
|
|
lru_cache = { workspace = true }
|
|
metrics = { workspace = true }
|
|
operation_pool = { workspace = true }
|
|
parking_lot = { workspace = true }
|
|
rand = { workspace = true }
|
|
slot_clock = { workspace = true }
|
|
smallvec = { workspace = true }
|
|
ssz_types = { workspace = true }
|
|
store = { workspace = true }
|
|
strum = { workspace = true }
|
|
task_executor = { workspace = true }
|
|
tokio = { workspace = true }
|
|
tokio-stream = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
types = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
bls = { workspace = true }
|
|
eth2 = { workspace = true }
|
|
eth2_network_config = { workspace = true }
|
|
genesis = { workspace = true }
|
|
gossipsub = { workspace = true }
|
|
k256 = "0.13.4"
|
|
kzg = { workspace = true }
|
|
matches = "0.1.8"
|
|
rand_08 = { package = "rand", version = "0.8.5" }
|
|
rand_chacha = "0.9.0"
|
|
rand_chacha_03 = { package = "rand_chacha", version = "0.3.1" }
|
|
serde_json = { workspace = true }
|