Skip to content

Commit

Permalink
Drop transitive dependency on time crate
Browse files Browse the repository at this point in the history
It turns out that it is not required by the chrono crate.

It was made optional in chrono version 0.4.16, see:
chronotope/chrono#478.

Require chrono 0.4.16 in Cargo.toml, as before that, the clock
feature pulled in the time crate, so that specifying no defaults
and precisely "clock" and "std" will still pull in the time crate,
transitively.

Signed-off-by: mulhern <amulhern@redhat.com>
  • Loading branch information
mulkieran committed Nov 5, 2021
1 parent 680123f commit 7651b88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
11 changes: 0 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ name = "stratis-utils"

[dependencies]
byteorder = "1.2.3"
chrono = "0.4.1"
clap = "2.23.0"
crc = "1.0.0"
data-encoding = "2.3.0"
Expand All @@ -64,6 +63,11 @@ serde_json = "1.0.50"
sha2 = "0.9.3"
tempfile = "3.0.2"

[dependencies.chrono]
version = "0.4.16"
default-features = false
features = ["clock", "std"]

[dependencies.stratisd_proc_macros]
version = "0.1.0"
path = "./stratisd_proc_macros"
Expand Down

0 comments on commit 7651b88

Please sign in to comment.