diff --git a/ndc_lib/Cargo.toml b/ndc_lib/Cargo.toml index 8f82daf..9692c98 100644 --- a/ndc_lib/Cargo.toml +++ b/ndc_lib/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true version.workspace = true [dependencies] -ahash = { workspace = true, optional = true } +ahash.workspace = true anyhow.workspace = true derive_more.workspace = true derive_builder.workspace = true @@ -18,6 +18,3 @@ ryu.workspace = true self_cell.workspace = true thiserror.workspace = true -[features] -default = ["ahash"] -ahash = ["dep:ahash"] diff --git a/ndc_lib/src/hash_map.rs b/ndc_lib/src/hash_map.rs index 84f0396..3915858 100644 --- a/ndc_lib/src/hash_map.rs +++ b/ndc_lib/src/hash_map.rs @@ -1,12 +1,5 @@ -#[cfg(feature = "ahash")] pub use ahash::AHashMap as HashMap; -#[cfg(not(feature = "ahash"))] -pub use std::collections::HashMap; - -#[cfg(feature = "ahash")] pub use ahash::AHasher as DefaultHasher; -#[cfg(not(feature = "ahash"))] -pub use std::hash::DefaultHasher; use std::hash::Hash; diff --git a/ndc_stdlib/Cargo.toml b/ndc_stdlib/Cargo.toml index 8da35e5..fe7bf51 100644 --- a/ndc_stdlib/Cargo.toml +++ b/ndc_stdlib/Cargo.toml @@ -21,6 +21,5 @@ md5 = { version = "0.8.0", optional = true } sha1 = { version = "0.10.6", optional = true } [features] -default = ["ahash", "crypto"] -ahash = ["ndc_lib/ahash"] +default = ["crypto"] crypto = ["dep:md5", "dep:sha1"]