Skip to content

Commit 393c801

Browse files
committed
Gate SIMD modules behind the std feature flag
This caused a warning starting in Rust 1.89
1 parent 2b90de0 commit 393c801

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/xxhash3/large.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ use crate::{IntoU128, IntoU64};
1111
// SIMD implementations.
1212
pub mod scalar;
1313

14-
#[cfg(target_arch = "aarch64")]
14+
#[cfg(all(target_arch = "aarch64", feature = "std"))]
1515
pub mod neon;
1616

17-
#[cfg(target_arch = "x86_64")]
17+
#[cfg(all(target_arch = "x86_64", feature = "std"))]
1818
pub mod avx2;
1919

20-
#[cfg(target_arch = "x86_64")]
20+
#[cfg(all(target_arch = "x86_64", feature = "std"))]
2121
pub mod sse2;
2222

2323
macro_rules! dispatch {

0 commit comments

Comments
 (0)