Skip to content

Commit

Permalink
chore: touchups
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Feb 6, 2025
1 parent 842992b commit 4a5a61a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/trie/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ arbitrary = [
"alloy-rpc-types-eth?/arbitrary",
"revm/arbitrary",
]
rayon = ["dep:rayon"]

[[bench]]
name = "prefix_set"
Expand Down
8 changes: 2 additions & 6 deletions crates/trie/common/src/hashedstate.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
#![cfg_attr(not(feature = "std"), no_std)]

use crate::{
prefix_set::{PrefixSetMut, TriePrefixSetsMut},
Nibbles,
KeyHasher, Nibbles,
};
use alloc::{borrow::Cow, vec::Vec};
use alloy_primitives::{
keccak256,
map::{hash_map, B256HashMap, B256HashSet, HashMap, HashSet},
Address, B256, U256,
};
use itertools::Itertools;

use crate::KeyHasher;
use reth_primitives_traits::Account;
use revm::db::{AccountStatus, BundleAccount};
use std::borrow::Cow;

#[cfg(feature = "rayon")]
pub use rayon::*;
Expand Down
3 changes: 1 addition & 2 deletions crates/trie/trie/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ reth-primitives-traits.workspace = true
reth-stages-types.workspace = true
reth-storage-errors.workspace = true
reth-trie-sparse.workspace = true
reth-trie-common.workspace = true
reth-trie-common = { workspace = true, features = ["rayon"] }

revm.workspace = true

Expand All @@ -33,7 +33,6 @@ alloy-trie.workspace = true
tracing.workspace = true

# misc
rayon = { workspace = true, optional = true }
auto_impl.workspace = true
itertools.workspace = true

Expand Down
1 change: 1 addition & 0 deletions crates/trie/trie/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//!
//! ## Feature Flags
//!
//! - `rayon`: uses rayon for parallel [`HashedPostState`] creation.
//! - `test-utils`: Export utilities for testing
#![doc(
Expand Down

0 comments on commit 4a5a61a

Please sign in to comment.