diff --git a/src/simd_funcs.rs b/src/simd_funcs.rs index 5ae00e6..d082418 100644 --- a/src/simd_funcs.rs +++ b/src/simd_funcs.rs @@ -349,6 +349,7 @@ cfg_if! { } #[cfg(test)] +#[cfg(feature = "alloc")] mod tests { use super::*; use alloc::vec::Vec; diff --git a/tests/test_data.rs b/tests/test_data.rs index 6a9d370..e026726 100644 --- a/tests/test_data.rs +++ b/tests/test_data.rs @@ -1,3 +1,4 @@ +#[cfg(feature = "alloc")] mod test_data { mod big5; mod euc_jp;