Skip to content

Commit

Permalink
Don't have oldtime feature as default for stable releases
Browse files Browse the repository at this point in the history
As this feature pulls in a dependency on time 0.1 which fail a security
audit, it should not be included as a default feature. The corresponding
Rust advisory can be found here:

https://rustsec.org/advisories/RUSTSEC-2020-0071
  • Loading branch information
penguin359 committed Sep 1, 2023
1 parent f9d231b commit 14a1b9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rust-version = "1.57.0"
name = "chrono"

[features]
default = ["clock", "std", "oldtime", "wasmbind"]
default = ["clock", "std", "wasmbind"]
alloc = []
libc = []
winapi = ["windows-targets"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ 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).
* `oldtime`: 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.
Expand Down

0 comments on commit 14a1b9b

Please sign in to comment.