From 6e37ac030dd59d5b521e6ee92e3362fdd3e6bbf6 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Wed, 26 Nov 2025 17:01:03 -0500 Subject: [PATCH] Add patch for `alloy-eip2124` to an empty crate Removes the `crc` dependency which had a unique author associated. --- Cargo.lock | 42 +++++------------------ Cargo.toml | 1 + patches/ethereum/alloy-eip2124/Cargo.toml | 19 ++++++++++ patches/ethereum/alloy-eip2124/src/lib.rs | 0 4 files changed, 29 insertions(+), 33 deletions(-) create mode 100644 patches/ethereum/alloy-eip2124/Cargo.toml create mode 100644 patches/ethereum/alloy-eip2124/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index 7fefa1af..cac727c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -153,16 +153,7 @@ dependencies = [ [[package]] name = "alloy-eip2124" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "741bdd7499908b3aa0b159bba11e71c8cddd009a2c2eb7a06e825f1ec87900a5" -dependencies = [ - "alloy-primitives", - "alloy-rlp", - "crc", - "serde", - "thiserror 2.0.17", -] +version = "0.2.99" [[package]] name = "alloy-eip2930" @@ -1969,21 +1960,6 @@ version = "0.126.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d039de901c8d928222b8128e1b9a9ab27b82a7445cb749a871c75d9cb25c57d" -[[package]] -name = "crc" -version = "3.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9710d3b3739c2e349eb44fe848ad0b7c8cb1e42bd87ee49371df2f7acaf3e675" -dependencies = [ - "crc-catalog", -] - -[[package]] -name = "crc-catalog" -version = "2.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" - [[package]] name = "crc32fast" version = "1.5.0" @@ -3539,9 +3515,9 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hex-conservative" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5313b072ce3c597065a808dbf612c4c8e8590bdbf8b579508bf7a762c5eae6cd" +checksum = "fda06d18ac606267c40c04e41b9947729bf8b9efe74bd4e82b61a5f26a510b9f" dependencies = [ "arrayvec", ] @@ -10628,9 +10604,9 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.30" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81383ab64e72a7a8b8e13130c49e3dab29def6d0c7d76a03087b3cf71c5c6903" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" dependencies = [ "proc-macro2", "quote", @@ -10639,9 +10615,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.34" +version = "0.1.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678" +checksum = "7a04e24fab5c89c6a36eb8558c9656f30d81de51dfa4d3b45f26b21d61fa0a6c" dependencies = [ "once_cell", "valuable", @@ -11662,9 +11638,9 @@ checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" [[package]] name = "winnow" -version = "0.7.13" +version = "0.7.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf" +checksum = "5a5364e9d77fcdeeaa6062ced926ee3381faa2ee02d3eb83a5c27a8825540829" dependencies = [ "memchr", ] diff --git a/Cargo.toml b/Cargo.toml index d563ee36..a10f0c84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -171,6 +171,7 @@ overflow-checks = true [patch.crates-io] # Point to empty crates for crates unused within in our tree +alloy-eip2124 = { path = "patches/ethereum/alloy-eip2124" } ark-ff-3 = { package = "ark-ff", path = "patches/ethereum/ark-ff-0.3" } ark-ff-4 = { package = "ark-ff", path = "patches/ethereum/ark-ff-0.4" } c-kzg = { path = "patches/ethereum/c-kzg" } diff --git a/patches/ethereum/alloy-eip2124/Cargo.toml b/patches/ethereum/alloy-eip2124/Cargo.toml new file mode 100644 index 00000000..2e0dfedc --- /dev/null +++ b/patches/ethereum/alloy-eip2124/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "alloy-eip2124" +version = "0.2.99" +description = "Patch to an empty crate" +license = "MIT" +repository = "https://github.com/serai-dex/serai/tree/develop/patches/ethereum/alloy-eip2124" +authors = ["Luke Parker "] +keywords = [] +edition = "2021" + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + +[workspace] + +[features] +std = [] +serde = [] diff --git a/patches/ethereum/alloy-eip2124/src/lib.rs b/patches/ethereum/alloy-eip2124/src/lib.rs new file mode 100644 index 00000000..e69de29b