Skip to content

Commit

Permalink
Remove default features from chrono to get rid of the oldtime feature
Browse files Browse the repository at this point in the history
time v0.1 has a security advisory RUSTSEC-2020-0071
time is an optional dependency of chrono with the default features. The
dependency is not actually needed and can be avoided by not using the
default-features. Any crates which needs that time and chrono share the
Duration type can enable the feature themself.

Closes #378
  • Loading branch information
jonasbb committed Oct 18, 2021
1 parent a561ac5 commit d91731b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serde_with/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ macros = ["serde_with_macros"]
# When adding new optional dependencies update the documentation in feature-flags.md
[dependencies]
base64_crate = {package = "base64", version = "0.13.0", optional = true}
chrono_crate = {package = "chrono", version = "0.4.1", features = ["serde"], optional = true}
chrono_crate = {package = "chrono", version = "0.4.1", features = ["clock", "serde", "std"], optional = true, default-features = false}
doc-comment = {version = "0.3.3", optional = true}
hex = {version = "0.4.2", optional = true}
rustversion = "1.0.0"
Expand Down

0 comments on commit d91731b

Please sign in to comment.