From 72efb9ad69432acb3b59161cffa0acb2667a44a4 Mon Sep 17 00:00:00 2001 From: Kornel Date: Tue, 12 Nov 2024 17:44:59 +0000 Subject: [PATCH] cfg for tests that require alloc --- src/simd_funcs.rs | 1 + tests/test_data.rs | 1 + 2 files changed, 2 insertions(+) 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;