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 <[email protected]>
  • Loading branch information
mulkieran committed Nov 11, 2021
1 parent c8846de commit 4da65b6
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 @@ -63,6 +62,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.libcryptsetup-rs]
version = "0.4.3"
features = ["mutex"]
Expand Down

0 comments on commit 4da65b6

Please sign in to comment.