From 06f5fbb54ccfa9e738f5eefe239d12060a282f5a Mon Sep 17 00:00:00 2001 From: tjjfvi Date: Mon, 27 May 2024 14:09:05 -0400 Subject: [PATCH] remove nohash_hasher dep --- Cargo.lock | 7 ------- cspell.json | 1 - runtime/Cargo.toml | 3 +-- runtime/src/addr.rs | 3 --- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5c99187a..1a58a374 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -319,7 +319,6 @@ name = "hvm64-runtime" version = "0.3.0" dependencies = [ "hvm64-util", - "nohash-hasher", "parking_lot", ] @@ -414,12 +413,6 @@ version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" -[[package]] -name = "nohash-hasher" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" - [[package]] name = "num-traits" version = "0.2.18" diff --git a/cspell.json b/cspell.json index e7549f74..cf312877 100644 --- a/cspell.json +++ b/cspell.json @@ -31,7 +31,6 @@ "monomorphized", "newtype", "nilary", - "nohash", "nomicon", "oper", "outdir", diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 549130d5..9b96d848 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -8,12 +8,11 @@ path = "src/runtime.rs" [dependencies] parking_lot = "0.12.2" -nohash-hasher = { version = "0.2.0", optional = true } hvm64-util = { path = "../util", default-features = false } [features] -std = ["hvm64-util/std", "dep:nohash-hasher"] +std = ["hvm64-util/std"] trace = [] [lints] diff --git a/runtime/src/addr.rs b/runtime/src/addr.rs index b0adf117..edcb7d4d 100644 --- a/runtime/src/addr.rs +++ b/runtime/src/addr.rs @@ -12,9 +12,6 @@ use super::*; #[must_use] pub struct Addr(pub usize); -#[cfg(feature = "std")] -impl nohash_hasher::IsEnabled for Addr {} - impl fmt::Debug for Addr { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{:012x?}", self.0)