From 180f4b3817ee841391ccd83a9a9701e950833dfa Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 15 Aug 2025 18:26:48 +0200 Subject: make std optional turns out, we're not using much of it anyway --- src/block.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/block.rs') diff --git a/src/block.rs b/src/block.rs index 8327286..e1140e7 100644 --- a/src/block.rs +++ b/src/block.rs @@ -1,4 +1,9 @@ +#[cfg(feature = "std")] use std::ops::{BitAnd, BitOr, BitXor, Index, IndexMut, Mul, Shl, Shr}; +#[cfg(not(feature = "std"))] +use core::ops::{BitAnd, BitOr, BitXor, Index, IndexMut, Mul, Shl, Shr}; + + #[cfg(feature = "simd")] use std::simd::prelude::*; -- cgit v1.2.3