From c329be28b0abd50fdecd51a84a7f48666d5c3360 Mon Sep 17 00:00:00 2001 From: Olivier Giniaux Date: Mon, 27 May 2024 23:30:29 +0200 Subject: [PATCH] Remove usage docrs flag as rustc-args should do the trick for building docs --- Cargo.toml | 2 +- src/gxhash/platform/arm.rs | 2 +- src/gxhash/platform/x86.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 70a252f..3b01291 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" 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"))))]