Skip to content

Commit

Permalink
Remove usage docrs flag as rustc-args should do the trick for buildin…
Browse files Browse the repository at this point in the history
…g docs
  • Loading branch information
ogxd committed May 27, 2024
1 parent 4c72f34 commit 6b0a609
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion src/gxhash/platform/arm.rs
Original file line number Diff line number Diff line change
@@ -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")]
Expand Down
2 changes: 1 addition & 1 deletion src/gxhash/platform/x86.rs
Original file line number Diff line number Diff line change
@@ -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"))))]
Expand Down

0 comments on commit 6b0a609

Please sign in to comment.