diff --git a/src/time.rs b/src/time.rs index e399b3d..45277bc 100644 --- a/src/time.rs +++ b/src/time.rs @@ -273,6 +273,7 @@ impl TimeReader for CdsShortTimeProvider { /// See [chrono::DateTime::format] for a usage example of the generated /// [chrono::format::DelayedFormat] structs. pub mod ascii { + #[cfg(feature = "alloc")] use chrono::format::{DelayedFormat, StrftimeItems}; use chrono::{DateTime, Utc};