diff --git a/chrono-tz/src/lib.rs b/chrono-tz/src/lib.rs index fbe8097..fccc64e 100644 --- a/chrono-tz/src/lib.rs +++ b/chrono-tz/src/lib.rs @@ -128,7 +128,7 @@ //! assert!(TZ_VARIANTS.iter().any(|v| *v == Tz::UTC)); //! ``` -#![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr(not(any(feature = "std", test)), no_std)] #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] #[cfg(feature = "serde")]