Remove syn version 1 (#8678)

#8547


  This updates a few of our crates to remove the older `syn 1` crate.

This updates:
- `criterion` -> `0.8`
- `itertools` -> `0.14`

And also certain `sigp` crates:
- `xdelta3` -> [`fe39066`](fe3906605c)
- `superstruct` -> `0.10.1`
- `ethereum_ssz` -> `0.10.1`
- `tree_hash` -> `0.12.1`
- `metastruct` -> `0.1.4`
- `context_deserialize` -> `0.2.1`
- `compare_fields` -> `0.1.1`


Co-Authored-By: Mac L <mjladson@pm.me>
This commit is contained in:
Mac L
2026-02-07 05:18:04 +04:00
committed by GitHub
parent e4bc650097
commit 2ad02510cd
6 changed files with 136 additions and 190 deletions

310
Cargo.lock generated
View File

@@ -111,6 +111,15 @@ dependencies = [
"memchr", "memchr",
] ]
[[package]]
name = "alloca"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5a7d05ea6aea7e9e64d25b9156ba2fee3fdd659e34e41063cd2fc7cd020d7f4"
dependencies = [
"cc",
]
[[package]] [[package]]
name = "allocator-api2" name = "allocator-api2"
version = "0.2.21" version = "0.2.21"
@@ -1031,7 +1040,7 @@ dependencies = [
"futures-lite", "futures-lite",
"parking", "parking",
"polling", "polling",
"rustix 1.1.2", "rustix",
"slab", "slab",
"windows-sys 0.61.2", "windows-sys 0.61.2",
] ]
@@ -1232,7 +1241,7 @@ dependencies = [
"genesis", "genesis",
"hex", "hex",
"int_to_bytes", "int_to_bytes",
"itertools 0.10.5", "itertools 0.14.0",
"kzg", "kzg",
"lighthouse_version", "lighthouse_version",
"logging", "logging",
@@ -1315,7 +1324,7 @@ dependencies = [
"clap", "clap",
"eth2", "eth2",
"futures", "futures",
"itertools 0.10.5", "itertools 0.14.0",
"sensitive_url", "sensitive_url",
"serde", "serde",
"slot_clock", "slot_clock",
@@ -1334,7 +1343,7 @@ version = "0.1.0"
dependencies = [ dependencies = [
"fnv", "fnv",
"futures", "futures",
"itertools 0.10.5", "itertools 0.14.0",
"lighthouse_network", "lighthouse_network",
"logging", "logging",
"metrics", "metrics",
@@ -1371,15 +1380,32 @@ dependencies = [
"itertools 0.12.1", "itertools 0.12.1",
"lazy_static", "lazy_static",
"lazycell", "lazycell",
"log",
"prettyplease",
"proc-macro2", "proc-macro2",
"quote", "quote",
"regex", "regex",
"rustc-hash 1.1.0", "rustc-hash 1.1.0",
"shlex", "shlex",
"syn 2.0.111", "syn 2.0.111",
"which", ]
[[package]]
name = "bindgen"
version = "0.72.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
dependencies = [
"bitflags 2.10.0",
"cexpr",
"clang-sys",
"itertools 0.13.0",
"log",
"prettyplease",
"proc-macro2",
"quote",
"regex",
"rustc-hash 2.1.1",
"shlex",
"syn 2.0.111",
] ]
[[package]] [[package]]
@@ -1807,7 +1833,7 @@ dependencies = [
"anstream", "anstream",
"anstyle", "anstyle",
"clap_lex", "clap_lex",
"strsim 0.11.1", "strsim",
"terminal_size", "terminal_size",
] ]
@@ -1914,9 +1940,9 @@ dependencies = [
[[package]] [[package]]
name = "compare_fields" name = "compare_fields"
version = "0.1.0" version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05162add7c8618791829528194a271dca93f69194d35b19db1ca7fbfb8275278" checksum = "f6f45d0b4d61b582303179fb7a1a142bc9d647b7583db3b0d5f25a21d286fab9"
dependencies = [ dependencies = [
"compare_fields_derive", "compare_fields_derive",
"itertools 0.14.0", "itertools 0.14.0",
@@ -1924,12 +1950,12 @@ dependencies = [
[[package]] [[package]]
name = "compare_fields_derive" name = "compare_fields_derive"
version = "0.1.0" version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f5ee468b2e568b668e2a686112935e7bbe9a81bf4fa6b9f6fc3410ea45fb7ce" checksum = "92ff1dbbda10d495b2c92749c002b2025e0be98f42d1741ecc9ff820d2f04dce"
dependencies = [ dependencies = [
"quote", "quote",
"syn 1.0.109", "syn 2.0.111",
] ]
[[package]] [[package]]
@@ -2026,9 +2052,9 @@ dependencies = [
[[package]] [[package]]
name = "context_deserialize" name = "context_deserialize"
version = "0.2.0" version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c5f9ea0a0ae2de4943f5ca71590b6dbd0b952475f0a0cafb30a470cec78c8b9" checksum = "4c523eea4af094b5970c321f4604abc42c5549d3cbae332e98325403fbbdbf70"
dependencies = [ dependencies = [
"context_deserialize_derive", "context_deserialize_derive",
"serde", "serde",
@@ -2036,12 +2062,12 @@ dependencies = [
[[package]] [[package]]
name = "context_deserialize_derive" name = "context_deserialize_derive"
version = "0.2.0" version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c57b2db1e4e3ed804dcc49894a144b68fe6c754b8f545eb1dda7ad3c7dbe7e6" checksum = "3b7bf98c48ffa511b14bb3c76202c24a8742cea1efa9570391c5d41373419a09"
dependencies = [ dependencies = [
"quote", "quote",
"syn 1.0.109", "syn 2.0.111",
] ]
[[package]] [[package]]
@@ -2129,25 +2155,24 @@ dependencies = [
[[package]] [[package]]
name = "criterion" name = "criterion"
version = "0.5.1" version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2b12d017a929603d80db1831cd3a24082f8137ce19c69e6447f54f5fc8d692f" checksum = "950046b2aa2492f9a536f5f4f9a3de7b9e2476e575e05bd6c333371add4d98f3"
dependencies = [ dependencies = [
"alloca",
"anes", "anes",
"cast", "cast",
"ciborium", "ciborium",
"clap", "clap",
"criterion-plot", "criterion-plot",
"is-terminal", "itertools 0.13.0",
"itertools 0.10.5",
"num-traits", "num-traits",
"once_cell",
"oorandom", "oorandom",
"page_size",
"plotters", "plotters",
"rayon", "rayon",
"regex", "regex",
"serde", "serde",
"serde_derive",
"serde_json", "serde_json",
"tinytemplate", "tinytemplate",
"walkdir", "walkdir",
@@ -2155,12 +2180,12 @@ dependencies = [
[[package]] [[package]]
name = "criterion-plot" name = "criterion-plot"
version = "0.5.0" version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1" checksum = "d8d80a2f4f5b554395e47b5d8305bc3d27813bacb73493eb1001e8f76dae29ea"
dependencies = [ dependencies = [
"cast", "cast",
"itertools 0.10.5", "itertools 0.13.0",
] ]
[[package]] [[package]]
@@ -2279,26 +2304,6 @@ dependencies = [
"syn 2.0.111", "syn 2.0.111",
] ]
[[package]]
name = "darling"
version = "0.13.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a01d95850c592940db9b8194bc39f4bc0e89dee5c4265e4b1807c34a9aba453c"
dependencies = [
"darling_core 0.13.4",
"darling_macro 0.13.4",
]
[[package]]
name = "darling"
version = "0.20.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
dependencies = [
"darling_core 0.20.11",
"darling_macro 0.20.11",
]
[[package]] [[package]]
name = "darling" name = "darling"
version = "0.21.3" version = "0.21.3"
@@ -2310,31 +2315,13 @@ dependencies = [
] ]
[[package]] [[package]]
name = "darling_core" name = "darling"
version = "0.13.4" version = "0.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "859d65a907b6852c9361e3185c862aae7fafd2887876799fa55f5f99dc40d610" checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d"
dependencies = [ dependencies = [
"fnv", "darling_core 0.23.0",
"ident_case", "darling_macro 0.23.0",
"proc-macro2",
"quote",
"strsim 0.10.0",
"syn 1.0.109",
]
[[package]]
name = "darling_core"
version = "0.20.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"
dependencies = [
"fnv",
"ident_case",
"proc-macro2",
"quote",
"strsim 0.11.1",
"syn 2.0.111",
] ]
[[package]] [[package]]
@@ -2348,29 +2335,20 @@ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
"serde", "serde",
"strsim 0.11.1", "strsim",
"syn 2.0.111", "syn 2.0.111",
] ]
[[package]] [[package]]
name = "darling_macro" name = "darling_core"
version = "0.13.4" version = "0.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c972679f83bdf9c42bd905396b6c3588a843a17f0f16dfcfa3e2c5d57441835" checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0"
dependencies = [ dependencies = [
"darling_core 0.13.4", "ident_case",
"quote", "proc-macro2",
"syn 1.0.109",
]
[[package]]
name = "darling_macro"
version = "0.20.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
dependencies = [
"darling_core 0.20.11",
"quote", "quote",
"strsim",
"syn 2.0.111", "syn 2.0.111",
] ]
@@ -2385,6 +2363,17 @@ dependencies = [
"syn 2.0.111", "syn 2.0.111",
] ]
[[package]]
name = "darling_macro"
version = "0.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d"
dependencies = [
"darling_core 0.23.0",
"quote",
"syn 2.0.111",
]
[[package]] [[package]]
name = "darwin-libproc" name = "darwin-libproc"
version = "0.1.2" version = "0.1.2"
@@ -3232,15 +3221,15 @@ dependencies = [
[[package]] [[package]]
name = "ethereum_ssz" name = "ethereum_ssz"
version = "0.10.0" version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e8cd8c4f47dfb947dbfe3cdf2945ae1da808dbedc592668658e827a12659ba1" checksum = "2128a84f7a3850d54ee343334e3392cca61f9f6aa9441eec481b9394b43c238b"
dependencies = [ dependencies = [
"alloy-primitives", "alloy-primitives",
"arbitrary", "arbitrary",
"context_deserialize", "context_deserialize",
"ethereum_serde_utils", "ethereum_serde_utils",
"itertools 0.13.0", "itertools 0.14.0",
"serde", "serde",
"serde_derive", "serde_derive",
"smallvec", "smallvec",
@@ -3249,11 +3238,11 @@ dependencies = [
[[package]] [[package]]
name = "ethereum_ssz_derive" name = "ethereum_ssz_derive"
version = "0.10.0" version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78d247bc40823c365a62e572441a8f8b12df03f171713f06bc76180fcd56ab71" checksum = "cd596f91cff004fc8d02be44c21c0f9b93140a04b66027ae052f5f8e05b48eba"
dependencies = [ dependencies = [
"darling 0.20.11", "darling 0.23.0",
"proc-macro2", "proc-macro2",
"quote", "quote",
"syn 2.0.111", "syn 2.0.111",
@@ -4094,15 +4083,6 @@ dependencies = [
"digest 0.10.7", "digest 0.10.7",
] ]
[[package]]
name = "home"
version = "0.5.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d"
dependencies = [
"windows-sys 0.61.2",
]
[[package]] [[package]]
name = "http" name = "http"
version = "0.2.12" version = "0.2.12"
@@ -4688,17 +4668,6 @@ dependencies = [
"serde", "serde",
] ]
[[package]]
name = "is-terminal"
version = "0.4.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
dependencies = [
"hermit-abi",
"libc",
"windows-sys 0.61.2",
]
[[package]] [[package]]
name = "is_terminal_polyfill" name = "is_terminal_polyfill"
version = "1.70.2" version = "1.70.2"
@@ -5421,7 +5390,7 @@ dependencies = [
"futures", "futures",
"hex", "hex",
"if-addrs 0.14.0", "if-addrs 0.14.0",
"itertools 0.10.5", "itertools 0.14.0",
"libp2p", "libp2p",
"libp2p-mplex", "libp2p-mplex",
"lighthouse_version", "lighthouse_version",
@@ -5487,12 +5456,6 @@ dependencies = [
"regex", "regex",
] ]
[[package]]
name = "linux-raw-sys"
version = "0.4.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
[[package]] [[package]]
name = "linux-raw-sys" name = "linux-raw-sys"
version = "0.11.0" version = "0.11.0"
@@ -5650,13 +5613,13 @@ checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
[[package]] [[package]]
name = "match-lookup" name = "match-lookup"
version = "0.1.1" version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1265724d8cb29dbbc2b0f06fffb8bf1a8c0cf73a78eede9ba73a4a66c52a981e" checksum = "757aee279b8bdbb9f9e676796fd459e4207a1f986e87886700abf589f5abf771"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
"syn 1.0.109", "syn 2.0.111",
] ]
[[package]] [[package]]
@@ -5685,7 +5648,7 @@ name = "mdbx-sys"
version = "0.11.6-4" version = "0.11.6-4"
source = "git+https://github.com/sigp/libmdbx-rs?rev=e6ff4b9377c1619bcf0bfdf52bee5a980a432a1a#e6ff4b9377c1619bcf0bfdf52bee5a980a432a1a" source = "git+https://github.com/sigp/libmdbx-rs?rev=e6ff4b9377c1619bcf0bfdf52bee5a980a432a1a#e6ff4b9377c1619bcf0bfdf52bee5a980a432a1a"
dependencies = [ dependencies = [
"bindgen", "bindgen 0.69.5",
"cc", "cc",
"cmake", "cmake",
"libc", "libc",
@@ -5725,25 +5688,25 @@ dependencies = [
[[package]] [[package]]
name = "metastruct" name = "metastruct"
version = "0.1.3" version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d74f54f231f9a18d77393ecc5cc7ab96709b2a61ee326c2b2b291009b0cc5a07" checksum = "969a1be9bd80794bdf93b23ab552c2ec6f3e83b33164824553fd996cdad513b8"
dependencies = [ dependencies = [
"metastruct_macro", "metastruct_macro",
] ]
[[package]] [[package]]
name = "metastruct_macro" name = "metastruct_macro"
version = "0.1.3" version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "985e7225f3a4dfbec47a0c6a730a874185fda840d365d7bbd6ba199dd81796d5" checksum = "de9164f767d73a507c19205868c84da411dc7795f4bdabf497d3dd93cfef9930"
dependencies = [ dependencies = [
"darling 0.13.4", "darling 0.23.0",
"itertools 0.10.5", "itertools 0.14.0",
"proc-macro2", "proc-macro2",
"quote", "quote",
"smallvec", "smallvec",
"syn 1.0.109", "syn 2.0.111",
] ]
[[package]] [[package]]
@@ -6090,7 +6053,7 @@ dependencies = [
"genesis", "genesis",
"hex", "hex",
"igd-next", "igd-next",
"itertools 0.10.5", "itertools 0.14.0",
"k256", "k256",
"kzg", "kzg",
"libp2p", "libp2p",
@@ -6526,7 +6489,7 @@ dependencies = [
"ethereum_ssz", "ethereum_ssz",
"ethereum_ssz_derive", "ethereum_ssz_derive",
"fixed_bytes", "fixed_bytes",
"itertools 0.10.5", "itertools 0.14.0",
"maplit", "maplit",
"metrics", "metrics",
"parking_lot", "parking_lot",
@@ -6541,6 +6504,16 @@ dependencies = [
"types", "types",
] ]
[[package]]
name = "page_size"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "30d5b2194ed13191c1999ae0704b7839fb18384fa22e49b57eeaa97d79ce40da"
dependencies = [
"libc",
"winapi",
]
[[package]] [[package]]
name = "pairing" name = "pairing"
version = "0.23.0" version = "0.23.0"
@@ -6741,7 +6714,7 @@ dependencies = [
"concurrent-queue", "concurrent-queue",
"hermit-abi", "hermit-abi",
"pin-project-lite", "pin-project-lite",
"rustix 1.1.2", "rustix",
"windows-sys 0.61.2", "windows-sys 0.61.2",
] ]
@@ -6901,7 +6874,7 @@ checksum = "25485360a54d6861439d60facef26de713b1e126bf015ec8f98239467a2b82f7"
dependencies = [ dependencies = [
"bitflags 2.10.0", "bitflags 2.10.0",
"procfs-core", "procfs-core",
"rustix 1.1.2", "rustix",
] ]
[[package]] [[package]]
@@ -7619,19 +7592,6 @@ dependencies = [
"nom", "nom",
] ]
[[package]]
name = "rustix"
version = "0.38.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
dependencies = [
"bitflags 2.10.0",
"errno",
"libc",
"linux-raw-sys 0.4.15",
"windows-sys 0.59.0",
]
[[package]] [[package]]
name = "rustix" name = "rustix"
version = "1.1.2" version = "1.1.2"
@@ -7641,7 +7601,7 @@ dependencies = [
"bitflags 2.10.0", "bitflags 2.10.0",
"errno", "errno",
"libc", "libc",
"linux-raw-sys 0.11.0", "linux-raw-sys",
"windows-sys 0.61.2", "windows-sys 0.61.2",
] ]
@@ -8426,7 +8386,7 @@ dependencies = [
"fixed_bytes", "fixed_bytes",
"int_to_bytes", "int_to_bytes",
"integer-sqrt", "integer-sqrt",
"itertools 0.10.5", "itertools 0.14.0",
"merkle_proof", "merkle_proof",
"metrics", "metrics",
"milhouse", "milhouse",
@@ -8474,7 +8434,7 @@ dependencies = [
"ethereum_ssz", "ethereum_ssz",
"ethereum_ssz_derive", "ethereum_ssz_derive",
"fixed_bytes", "fixed_bytes",
"itertools 0.10.5", "itertools 0.14.0",
"leveldb", "leveldb",
"logging", "logging",
"lru 0.12.5", "lru 0.12.5",
@@ -8499,12 +8459,6 @@ dependencies = [
"zstd", "zstd",
] ]
[[package]]
name = "strsim"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
[[package]] [[package]]
name = "strsim" name = "strsim"
version = "0.11.1" version = "0.11.1"
@@ -8540,12 +8494,12 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
[[package]] [[package]]
name = "superstruct" name = "superstruct"
version = "0.10.0" version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b986e4a629907f20a2c2a639a75bc22a8b5d99b444e0d83c395f4cb309022bf" checksum = "bae4a9ccd7882533c1f210e400763ec6ee64c390fc12248c238276281863719e"
dependencies = [ dependencies = [
"darling 0.20.11", "darling 0.23.0",
"itertools 0.13.0", "itertools 0.14.0",
"proc-macro2", "proc-macro2",
"quote", "quote",
"smallvec", "smallvec",
@@ -8706,7 +8660,7 @@ dependencies = [
"fastrand", "fastrand",
"getrandom 0.3.4", "getrandom 0.3.4",
"once_cell", "once_cell",
"rustix 1.1.2", "rustix",
"windows-sys 0.61.2", "windows-sys 0.61.2",
] ]
@@ -8716,7 +8670,7 @@ version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60b8cb979cb11c32ce1603f8137b22262a9d131aaa5c37b5678025f22b8becd0" checksum = "60b8cb979cb11c32ce1603f8137b22262a9d131aaa5c37b5678025f22b8becd0"
dependencies = [ dependencies = [
"rustix 1.1.2", "rustix",
"windows-sys 0.60.2", "windows-sys 0.60.2",
] ]
@@ -9285,9 +9239,9 @@ dependencies = [
[[package]] [[package]]
name = "tree_hash" name = "tree_hash"
version = "0.12.0" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2db21caa355767db4fd6129876e5ae278a8699f4a6959b1e3e7aff610b532d52" checksum = "f7fd51aa83d2eb83b04570808430808b5d24fdbf479a4d5ac5dee4a2e2dd2be4"
dependencies = [ dependencies = [
"alloy-primitives", "alloy-primitives",
"ethereum_hashing", "ethereum_hashing",
@@ -9298,11 +9252,11 @@ dependencies = [
[[package]] [[package]]
name = "tree_hash_derive" name = "tree_hash_derive"
version = "0.12.0" version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "711cc655fcbb48384a87dc2bf641b991a15c5ad9afc3caa0b1ab1df3b436f70f" checksum = "8840ad4d852e325d3afa7fde8a50b2412f89dce47d7eb291c0cc7f87cd040f38"
dependencies = [ dependencies = [
"darling 0.21.3", "darling 0.23.0",
"proc-macro2", "proc-macro2",
"quote", "quote",
"syn 2.0.111", "syn 2.0.111",
@@ -9361,7 +9315,7 @@ dependencies = [
"fixed_bytes", "fixed_bytes",
"hex", "hex",
"int_to_bytes", "int_to_bytes",
"itertools 0.10.5", "itertools 0.14.0",
"kzg", "kzg",
"maplit", "maplit",
"merkle_proof", "merkle_proof",
@@ -9619,7 +9573,7 @@ dependencies = [
"graffiti_file", "graffiti_file",
"health_metrics", "health_metrics",
"initialized_validators", "initialized_validators",
"itertools 0.10.5", "itertools 0.14.0",
"lighthouse_validator_store", "lighthouse_validator_store",
"lighthouse_version", "lighthouse_version",
"logging", "logging",
@@ -10012,18 +9966,6 @@ dependencies = [
"rustls-pki-types", "rustls-pki-types",
] ]
[[package]]
name = "which"
version = "4.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"
dependencies = [
"either",
"home",
"once_cell",
"rustix 0.38.44",
]
[[package]] [[package]]
name = "widestring" name = "widestring"
version = "0.4.3" version = "0.4.3"
@@ -10478,15 +10420,15 @@ dependencies = [
[[package]] [[package]]
name = "xdelta3" name = "xdelta3"
version = "0.1.5" version = "0.1.5"
source = "git+https://github.com/sigp/xdelta3-rs?rev=4db64086bb02e9febb584ba93b9d16bb2ae3825a#4db64086bb02e9febb584ba93b9d16bb2ae3825a" source = "git+https://github.com/sigp/xdelta3-rs?rev=fe3906605c87b6c0515bd7c8fc671f47875e3ccc#fe3906605c87b6c0515bd7c8fc671f47875e3ccc"
dependencies = [ dependencies = [
"bindgen", "bindgen 0.72.1",
"cc", "cc",
"futures-io", "futures-io",
"futures-util", "futures-util",
"libc", "libc",
"log", "log",
"rand 0.8.5", "rand 0.9.2",
] ]
[[package]] [[package]]

View File

@@ -126,7 +126,7 @@ clap_utils = { path = "common/clap_utils" }
compare_fields = "0.1" compare_fields = "0.1"
console-subscriber = "0.4" console-subscriber = "0.4"
context_deserialize = "0.2" context_deserialize = "0.2"
criterion = "0.5" criterion = "0.8"
delay_map = "0.4" delay_map = "0.4"
deposit_contract = { path = "common/deposit_contract" } deposit_contract = { path = "common/deposit_contract" }
directory = { path = "common/directory" } directory = { path = "common/directory" }
@@ -164,7 +164,7 @@ http_api = { path = "beacon_node/http_api" }
hyper = "1" hyper = "1"
initialized_validators = { path = "validator_client/initialized_validators" } initialized_validators = { path = "validator_client/initialized_validators" }
int_to_bytes = { path = "consensus/int_to_bytes" } int_to_bytes = { path = "consensus/int_to_bytes" }
itertools = "0.10" itertools = "0.14"
kzg = { path = "crypto/kzg" } kzg = { path = "crypto/kzg" }
libp2p = { git = "https://github.com/libp2p/rust-libp2p.git", default-features = false, features = [ libp2p = { git = "https://github.com/libp2p/rust-libp2p.git", default-features = false, features = [
"identify", "identify",
@@ -286,7 +286,7 @@ validator_test_rig = { path = "testing/validator_test_rig" }
warp = { version = "0.3.7", default-features = false, features = ["tls"] } warp = { version = "0.3.7", default-features = false, features = ["tls"] }
warp_utils = { path = "common/warp_utils" } warp_utils = { path = "common/warp_utils" }
workspace_members = { path = "common/workspace_members" } workspace_members = { path = "common/workspace_members" }
xdelta3 = { git = "https://github.com/sigp/xdelta3-rs", rev = "4db64086bb02e9febb584ba93b9d16bb2ae3825a" } xdelta3 = { git = "https://github.com/sigp/xdelta3-rs", rev = "fe3906605c87b6c0515bd7c8fc671f47875e3ccc" }
zeroize = { version = "1", features = ["zeroize_derive", "serde"] } zeroize = { version = "1", features = ["zeroize_derive", "serde"] }
zip = { version = "6.0", default-features = false, features = ["deflate"] } zip = { version = "6.0", default-features = false, features = ["deflate"] }
zstd = "0.13" zstd = "0.13"

View File

@@ -1,8 +1,9 @@
use std::hint::black_box;
use std::sync::Arc; use std::sync::Arc;
use beacon_chain::kzg_utils::{blobs_to_data_column_sidecars, reconstruct_data_columns}; use beacon_chain::kzg_utils::{blobs_to_data_column_sidecars, reconstruct_data_columns};
use beacon_chain::test_utils::get_kzg; use beacon_chain::test_utils::get_kzg;
use criterion::{Criterion, black_box, criterion_group, criterion_main}; use criterion::{Criterion, criterion_group, criterion_main};
use bls::Signature; use bls::Signature;
use kzg::{KzgCommitment, KzgProof}; use kzg::{KzgCommitment, KzgProof};

View File

@@ -1,4 +1,5 @@
use criterion::{BenchmarkId, Criterion, black_box, criterion_group, criterion_main}; use criterion::{BenchmarkId, Criterion, criterion_group, criterion_main};
use std::hint::black_box;
use swap_or_not_shuffle::{compute_shuffled_index, shuffle_list as fast_shuffle}; use swap_or_not_shuffle::{compute_shuffled_index, shuffle_list as fast_shuffle};
const SHUFFLE_ROUND_COUNT: u8 = 90; const SHUFFLE_ROUND_COUNT: u8 = 90;

View File

@@ -1,8 +1,9 @@
use criterion::{BatchSize, BenchmarkId, Criterion, black_box, criterion_group, criterion_main}; use criterion::{BatchSize, BenchmarkId, Criterion, criterion_group, criterion_main};
use fixed_bytes::FixedBytesExtended; use fixed_bytes::FixedBytesExtended;
use milhouse::List; use milhouse::List;
use rayon::prelude::*; use rayon::prelude::*;
use ssz::Encode; use ssz::Encode;
use std::hint::black_box;
use std::sync::Arc; use std::sync::Arc;
use types::{ use types::{
BeaconState, Epoch, Eth1Data, EthSpec, Hash256, MainnetEthSpec, Validator, BeaconState, Epoch, Eth1Data, EthSpec, Hash256, MainnetEthSpec, Validator,

View File

@@ -16,6 +16,7 @@ deny = [
{ crate = "sha2", deny-multiple-versions = true, reason = "takes a long time to compile" }, { crate = "sha2", deny-multiple-versions = true, reason = "takes a long time to compile" },
{ crate = "pbkdf2", deny-multiple-versions = true, reason = "takes a long time to compile" }, { crate = "pbkdf2", deny-multiple-versions = true, reason = "takes a long time to compile" },
{ crate = "scrypt", deny-multiple-versions = true, reason = "takes a long time to compile" }, { crate = "scrypt", deny-multiple-versions = true, reason = "takes a long time to compile" },
{ crate = "syn", deny-multiple-versions = true, reason = "takes a long time to compile" },
] ]
[sources] [sources]