diff --git a/Cargo.toml b/Cargo.toml index a63f6d5..0ce961d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -103,6 +103,4 @@ hashbrown = "0.14.3" smallvec = "1.13.1" [package.metadata.docs.rs] -rustc-args = ["-C", "target-feature=+aes"] -rustdoc-args = ["-C", "target-feature=+aes"] features = ["std"] diff --git a/src/lib.rs b/src/lib.rs index 69fb2ca..bf94547 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -104,19 +104,7 @@ Note the import of [HashMapExt]. This is needed for the constructor. mod convert; mod fallback_hash; - -cfg_if::cfg_if! { - if #[cfg(any( - all(any(target_arch = "x86", target_arch = "x86_64"), target_feature = "aes", not(miri)), - all(feature = "nightly-arm-aes", target_arch = "aarch64", target_feature = "aes", not(miri)), - all(feature = "nightly-arm-aes", target_arch = "arm", target_feature = "aes", not(miri)), - ))] { - mod aes_hash; - pub use crate::aes_hash::AHasher; - } else { - pub use crate::fallback_hash::AHasher; - } -} +pub use crate::fallback_hash::AHasher; cfg_if::cfg_if! { if #[cfg(feature = "std")] { diff --git a/src/random_state.rs b/src/random_state.rs index 46a39ab..6e146e9 100644 --- a/src/random_state.rs +++ b/src/random_state.rs @@ -1,15 +1,5 @@ +use crate::fallback_hash::*; use core::hash::Hash; -cfg_if::cfg_if! { - if #[cfg(any( - all(any(target_arch = "x86", target_arch = "x86_64"), target_feature = "aes", not(miri)), - all(feature = "nightly-arm-aes", target_arch = "aarch64", target_feature = "aes", not(miri)), - all(feature = "nightly-arm-aes", target_arch = "arm", target_feature = "aes", not(miri)), - ))] { - use crate::aes_hash::*; - } else { - use crate::fallback_hash::*; - } -} cfg_if::cfg_if! { if #[cfg(feature = "specialize")]{ use crate::BuildHasherExt;