mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 15:26:12 +00:00
Remove mention of oldtime
from documentation
This commit is contained in:
parent
27ea7e9007
commit
9d7fafe69b
@ -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.
|
||||
|
10
src/lib.rs
10
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user