From 3970061ca1490658c3694384e57657a1dbe0cadd Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sat, 20 Aug 2022 23:19:38 +0200 Subject: [PATCH] only allow tests for std envs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 4862470..f6f9376 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,7 +46,7 @@ #![no_std] #[cfg(feature = "alloc")] extern crate alloc; -#[cfg(feature = "std")] +#[cfg(any(feature = "std", test))] extern crate std; use crate::ecss::CCSDS_HEADER_LEN;