From 3cbf46c0c3595baf777718a42e618a6fceba3201 Mon Sep 17 00:00:00 2001 From: Ishika Choudhury <117741714+Rimeeeeee@users.noreply.github.com> Date: Thu, 21 Aug 2025 11:25:55 +0530 Subject: [PATCH] fixes --- Cargo.toml | 38 ++++++----------------- crates/ethereum/evm/Cargo.toml | 33 ++++++++++---------- crates/storage/codecs/src/alloy/header.rs | 2 +- 3 files changed, 27 insertions(+), 46 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 957e2ae9af..de7e11759f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -474,12 +474,8 @@ alloy-chains = { version = "0.2.5", default-features = false } alloy-dyn-abi = "1.3.0" alloy-eip2124 = { version = "0.2.0", default-features = false } alloy-evm = { version = "0.17", default-features = false } -alloy-primitives = { version = "1.3.0", default-features = false, features = [ - "map-foldhash", -] } -alloy-rlp = { version = "0.3.10", default-features = false, features = [ - "core-net", -] } +alloy-primitives = { version = "1.3.0", default-features = false, features = ["map-foldhash"] } +alloy-rlp = { version = "0.3.10", default-features = false, features = ["core-net"] } alloy-sol-macro = "1.3.0" alloy-sol-types = { version = "1.3.0", default-features = false } alloy-trie = { version = "0.9.0", default-features = false } @@ -493,14 +489,10 @@ alloy-genesis = { version = "1.0.23", default-features = false } alloy-json-rpc = { version = "1.0.23", default-features = false } alloy-network = { version = "1.0.23", default-features = false } alloy-network-primitives = { version = "1.0.23", default-features = false } -alloy-provider = { version = "1.0.23", features = [ - "reqwest", -], default-features = false } +alloy-provider = { version = "1.0.23", features = ["reqwest"], default-features = false } alloy-pubsub = { version = "1.0.23", default-features = false } alloy-rpc-client = { version = "1.0.23", default-features = false } -alloy-rpc-types = { version = "1.0.23", features = [ - "eth", -], default-features = false } +alloy-rpc-types = { version = "1.0.23", features = ["eth"], default-features = false } alloy-rpc-types-admin = { version = "1.0.23", default-features = false } alloy-rpc-types-anvil = { version = "1.0.23", default-features = false } alloy-rpc-types-beacon = { version = "1.0.23", default-features = false } @@ -514,9 +506,7 @@ alloy-serde = { version = "1.0.23", default-features = false } alloy-signer = { version = "1.0.23", default-features = false } alloy-signer-local = { version = "1.0.23", default-features = false } alloy-transport = { version = "1.0.23" } -alloy-transport-http = { version = "1.0.23", features = [ - "reqwest-rustls-tls", -], default-features = false } +alloy-transport-http = { version = "1.0.23", features = ["reqwest-rustls-tls"], default-features = false } alloy-transport-ipc = { version = "1.0.23", default-features = false } alloy-transport-ws = { version = "1.0.23", default-features = false } alloy-block-access-list = { version = "1.0.23", default-features = false } @@ -535,10 +525,7 @@ op-alloy-flz = { version = "0.13.1", default-features = false } either = { version = "1.15.0", default-features = false } aquamarine = "0.6" auto_impl = "1" -backon = { version = "1.2", default-features = false, features = [ - "std-blocking-sleep", - "tokio-sleep", -] } +backon = { version = "1.2", default-features = false, features = ["std-blocking-sleep", "tokio-sleep"] } bincode = "1.3" bitflags = "2.4" blake3 = "1.5.5" @@ -559,13 +546,9 @@ itertools = { version = "0.14", default-features = false } linked_hash_set = "0.1" lz4 = "1.28.1" modular-bitfield = "0.11.2" -notify = { version = "8.0.0", default-features = false, features = [ - "macos_fsevent", -] } +notify = { version = "8.0.0", default-features = false, features = ["macos_fsevent"] } nybbles = { version = "0.4.0", default-features = false } -once_cell = { version = "1.19", default-features = false, features = [ - "critical-section", -] } +once_cell = { version = "1.19", default-features = false, features = ["critical-section"] } parking_lot = "0.12" paste = "1.0" rand = "0.9" @@ -645,10 +628,7 @@ proptest-arbitrary-interop = "0.1.0" # crypto enr = { version = "0.13", default-features = false } k256 = { version = "0.13", default-features = false, features = ["ecdsa"] } -secp256k1 = { version = "0.30", default-features = false, features = [ - "global-context", - "recovery", -] } +secp256k1 = { version = "0.30", default-features = false, features = ["global-context", "recovery"] } # rand 8 for secp256k1 rand_08 = { package = "rand", version = "0.8" } diff --git a/crates/ethereum/evm/Cargo.toml b/crates/ethereum/evm/Cargo.toml index 7de672d915..05eb8caa01 100644 --- a/crates/ethereum/evm/Cargo.toml +++ b/crates/ethereum/evm/Cargo.toml @@ -42,22 +42,23 @@ alloy-genesis.workspace = true [features] default = ["std"] std = [ - "alloy-consensus/std", - "alloy-eips/std", - "alloy-genesis/std", - "alloy-primitives/std", - "secp256k1/std", - "reth-ethereum-forks/std", - "reth-chainspec/std", - "alloy-evm/std", - "reth-execution-types/std", - "reth-evm/std", - "reth-primitives-traits/std", - "revm/std", - "reth-ethereum-primitives/std", - "derive_more?/std", - "alloy-rpc-types-engine/std", - "reth-storage-errors/std", + "alloy-consensus/std", + "alloy-eips/std", + "alloy-genesis/std", + "alloy-primitives/std", + "secp256k1/std", + "reth-ethereum-forks/std", + "reth-chainspec/std", + "alloy-evm/std", + "reth-execution-types/std", + "reth-evm/std", + "reth-primitives-traits/std", + "revm/std", + "reth-ethereum-primitives/std", + "derive_more?/std", + "alloy-rpc-types-engine/std", + "reth-storage-errors/std", + "alloy-rlp/std" ] test-utils = [ "dep:parking_lot", diff --git a/crates/storage/codecs/src/alloy/header.rs b/crates/storage/codecs/src/alloy/header.rs index 8f1c3a3ab4..99cec46fdd 100644 --- a/crates/storage/codecs/src/alloy/header.rs +++ b/crates/storage/codecs/src/alloy/header.rs @@ -172,7 +172,7 @@ mod tests { #[test] fn test_ensure_backwards_compatibility() { - assert_eq!(Header::bitflag_encoded_bytes(), 4); + assert_eq!(Header::bitflag_encoded_bytes(), 5); assert_eq!(HeaderExt::bitflag_encoded_bytes(), 1); }