Skip to content

Commit

Permalink
zkvm do not support fold hash
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsing committed Dec 18, 2024
1 parent e4b1973 commit e572472
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ auto_impl = "1.2"
hashbrown = "0.15"
once_cell = "1.19"
rkyv = "0.8"
rustc-hash = "2.0"
thiserror = "1.0"
tiny-keccak = "2.0"

Expand Down
1 change: 1 addition & 0 deletions crates/kv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ auto_impl.workspace = true
alloy-trie = { workspace = true, optional = true }
alloy-primitives = { workspace = true, optional = true }
hashbrown.workspace = true
rustc-hash = { workspace = true, default-features = false }
sled = { workspace = true, optional = true }

[features]
Expand Down
5 changes: 4 additions & 1 deletion crates/kv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ use std::borrow::{Borrow, Cow};
use std::hash::Hash;

mod imps;
pub use hashbrown::{self, HashMap, HashSet};
pub use imps::{nohash, small};
pub use rustc_hash::{FxBuildHasher, FxHasher};

pub type HashMap<K, V, S = FxBuildHasher> = hashbrown::HashMap<K, V, S>;
pub type HashSet<K, S = FxBuildHasher> = hashbrown::HashSet<K, S>;

/// Value trait
#[auto_impl(&, &mut, Box, Rc, Arc)]
Expand Down

0 comments on commit e572472

Please sign in to comment.