diff --git a/Cargo.toml b/Cargo.toml index 70a252f..c567c42 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "gxhash" authors = ["Olivier Giniaux"] -version = "3.3.2" +version = "3.4.0" edition = "2021" description = "GxHash non-cryptographic algorithm" license = "MIT" @@ -65,4 +65,4 @@ name = "quality" harness = false [package.metadata.docs.rs] -rustc-args = ["-C", "target-feature=+aes"] +rustc-args = ["-C", "target-feature=+aes,+sse2"] diff --git a/src/gxhash/platform/arm.rs b/src/gxhash/platform/arm.rs index c7a550e..b54b11c 100644 --- a/src/gxhash/platform/arm.rs +++ b/src/gxhash/platform/arm.rs @@ -1,4 +1,4 @@ -#[cfg(not(any(all(target_feature = "aes", target_feature = "neon"), docsrs)))] // docs.rs bypasses the target_feature check +#[cfg(not(all(target_feature = "aes", target_feature = "neon")))] compile_error!{"Gxhash requires aes and neon intrinsics. Make sure the processor supports it and build with RUSTFLAGS=\"-C target-cpu=native\" or RUSTFLAGS=\"-C target-feature=+aes,+neon\"."} #[cfg(target_arch = "arm")] diff --git a/src/gxhash/platform/x86.rs b/src/gxhash/platform/x86.rs index c85c521..b3016b3 100644 --- a/src/gxhash/platform/x86.rs +++ b/src/gxhash/platform/x86.rs @@ -1,4 +1,4 @@ -#[cfg(not(any(all(target_feature = "aes", target_feature = "sse2"), docsrs)))] // docs.rs bypasses the target_feature check +#[cfg(not(all(target_feature = "aes", target_feature = "sse2")))] compile_error!{"Gxhash requires aes and sse2 intrinsics. Make sure the processor supports it and build with RUSTFLAGS=\"-C target-cpu=native\" or RUSTFLAGS=\"-C target-feature=+aes,+sse2\"."} #[cfg(all(feature = "hybrid", not(any(target_feature = "aes", target_feature = "vaes", target_feature = "avx2"))))]