From 9d7fafe69b56aa1d79e6070ebb5cdecdacee85c6 Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Mon, 29 May 2023 12:09:39 +0200 Subject: [PATCH] Remove mention of `oldtime` from documentation --- README.md | 1 - src/lib.rs | 10 ++-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index dde07980..c3222dda 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,6 @@ Optional features: * `serde`: Enable serialization/deserialization via serde. * `rkyv`: Enable serialization/deserialization via rkyv. * `rustc-serialize`: Enable serialization/deserialization via rustc-serialize (deprecated). -* `old_time`: compatability with the `Duration` type of the `time` 0.1 crate (deprecated). * `arbitrary`: construct arbitrary instances of a type with the Arbitrary crate. * `unstable-locales`: Enable localization. This adds various methods with a `_localized` suffix. The implementation and API may change or even be removed in a patch release. Feedback welcome. diff --git a/src/lib.rs b/src/lib.rs index 16ae5d42..66368d94 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -40,6 +40,8 @@ //! - `unstable-locales`: Enable localization. This adds various methods with a //! `_localized` suffix. The implementation and API may change or even be //! removed in a patch release. Feedback welcome. +//! - `oldtime`: this feature no langer has a function, but once offered compatibility with the +//! `time` 0.1 crate. //! //! [`serde`]: https://github.com/serde-rs/serde //! [wasm-bindgen]: https://github.com/rustwasm/wasm-bindgen @@ -60,14 +62,6 @@ //! nanoseconds and does not represent "nominal" components such as days or //! months. //! -//! When the `oldtime` feature is enabled, [`Duration`] is an alias for the -//! [`time::Duration`](https://docs.rs/time/0.1.40/time/struct.Duration.html) -//! type from v0.1 of the time crate. time v0.1 is deprecated, so new code -//! should disable the `oldtime` feature and use the `chrono::Duration` type -//! instead. The `oldtime` feature is enabled by default for backwards -//! compatibility, but future versions of Chrono are likely to remove the -//! feature entirely. -//! //! Chrono does not yet natively support //! the standard [`Duration`](https://doc.rust-lang.org/std/time/struct.Duration.html) type, //! but it will be supported in the future.