From 1863b065ba933112fbed87094b65039c68cc819d Mon Sep 17 00:00:00 2001 From: Marshall Crumiller Date: Mon, 11 Nov 2024 21:50:55 -0500 Subject: [PATCH] Feature gate --- crates/polars-time/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/polars-time/src/lib.rs b/crates/polars-time/src/lib.rs index 32c90c852cc0..a4b94fb2d623 100644 --- a/crates/polars-time/src/lib.rs +++ b/crates/polars-time/src/lib.rs @@ -34,9 +34,13 @@ pub use month_end::*; pub use month_start::*; #[cfg(feature = "offset_by")] pub use offset_by::*; +#[cfg(any(feature = "dtype-date", feature = "dtype-datetime"))] pub use replace::*; pub use round::*; -pub use series::{date_series_from_parts, datetime_series_from_parts}; +#[cfg(feature = "dtype-date")] +pub use series::date_series_from_parts; +#[cfg(feature = "dtype-datetime")] +pub use series::datetime_series_from_parts; pub use truncate::*; pub use upsample::*; pub use windows::duration::Duration;