refactor(journaldriver): Use time crate directly instead of chrono

With this change, we still depend on chrono (through medallion), but
but I'm going to try and fix that upstream as well.

Change-Id: Iefd3d8578ea8870961107f3222dea7f936c2dd9a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5311
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-02-18 12:49:59 +03:00 committed by clbot
parent af512558e6
commit 71d6a02ca1
4 changed files with 47 additions and 25 deletions

View file

@ -94,8 +94,7 @@ dependencies = [
"libc",
"num-integer",
"num-traits",
"serde",
"time",
"time 0.1.44",
"winapi",
]
@ -112,7 +111,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "80f6044740a4a516b8aac14c140cdf35c1a640b1bd6b98b6224e49143b2f1566"
dependencies = [
"percent-encoding 2.1.0",
"time",
"time 0.1.44",
]
[[package]]
@ -227,7 +226,6 @@ name = "journaldriver"
version = "1.1.0"
dependencies = [
"anyhow",
"chrono",
"env_logger",
"lazy_static",
"log",
@ -237,6 +235,7 @@ dependencies = [
"serde_derive",
"serde_json",
"systemd",
"time 0.3.7",
"ureq",
]
@ -343,6 +342,15 @@ dependencies = [
"autocfg",
]
[[package]]
name = "num_threads"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97ba99ba6393e2c3734791401b66902d981cb03bf190af674ca69949b6d5fb15"
dependencies = [
"libc",
]
[[package]]
name = "once_cell"
version = "1.9.0"
@ -596,6 +604,25 @@ dependencies = [
"winapi",
]
[[package]]
name = "time"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "004cbc98f30fa233c61a38bc77e96a9106e65c88f2d3bef182ae952027e5753d"
dependencies = [
"itoa",
"libc",
"num_threads",
"serde",
"time-macros",
]
[[package]]
name = "time-macros"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25eb0ca3468fc0acc11828786797f6ef9aa1555e4a211a60d64cc8e4d1be47d6"
[[package]]
name = "tinyvec"
version = "1.5.1"