From 7651b8876d8ffb36aaa9ce9612e6f00ccac8e17e Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 5 Nov 2021 16:11:18 -0400 Subject: [PATCH] Drop transitive dependency on time crate It turns out that it is not required by the chrono crate. It was made optional in chrono version 0.4.16, see: https://github.com/chronotope/chrono/pull/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 --- Cargo.lock | 11 ----------- Cargo.toml | 6 +++++- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9b7b470b97..33fd1eef6f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -161,7 +161,6 @@ dependencies = [ "libc", "num-integer", "num-traits", - "time", "winapi", ] @@ -1151,16 +1150,6 @@ dependencies = [ "unicode-width", ] -[[package]] -name = "time" -version = "0.1.43" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "tokio" version = "1.12.0" diff --git a/Cargo.toml b/Cargo.toml index bfa820ebf9..5a218f0c9e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" @@ -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"