chiark / gitweb /
humantime: Switch to humantime_serde
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Apr 2022 21:32:56 +0000 (22:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Apr 2022 21:32:56 +0000 (22:32 +0100)
We are going to want this for dice cooldown spec.
Using the humantime re-export avoids version problems.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Cargo.lock
Cargo.toml
src/imports.rs

index a69a17360876f11a66112fbd02bbba87ddc601c9..1389d223cdd1edf59fb05277bb3f0e50e42c111e 100644 (file)
@@ -1807,6 +1807,16 @@ version = "2.1.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
 
+[[package]]
+name = "humantime-serde"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57a3db5ea5923d99402c94e9feb261dc5ee9b4efa158b0315f788cf549cc200c"
+dependencies = [
+ "humantime",
+ "serde",
+]
+
 [[package]]
 name = "hyper"
 version = "0.14.18"
@@ -2652,7 +2662,7 @@ dependencies = [
  "flexi_logger",
  "fs2",
  "glob",
- "humantime",
+ "humantime-serde",
  "image",
  "index_vec",
  "inventory",
index 6aa505a104e27c6a651dc57286414066e5201e4a..548889a5cd082c85039498ff8fe70180242cdbd5 100644 (file)
@@ -52,7 +52,7 @@ env_logger="0.9"
 fehler="1"
 fs2="0.4"
 glob="0.3"
-humantime="2"
+humantime-serde="1"
 inventory="0.2"
 lazy-init="0.5"
 lazy_static="1"
index d5594005ed336d8ef251eb934740cbfa557f56a1..7c402af609236e2d2847e959b6c07ffdc526c1f4 100644 (file)
@@ -20,7 +20,7 @@ pub use env_logger;
 pub use flexi_logger;
 pub use fs2;
 pub use glob;
-pub use humantime;
+pub use humantime_serde::{self, re::humantime};
 pub use index_vec;
 pub use lazy_init;
 pub use lazy_static;