diff --git a/Cargo.lock b/Cargo.lock index 59e27fed7..7384820c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -249,20 +249,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "chrono" -version = "0.4.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" -dependencies = [ - "libc", - "num-integer", - "num-traits", - "serde", - "time 0.1.44", - "winapi", -] - [[package]] name = "cipher" version = "0.3.0" @@ -853,7 +839,7 @@ checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" dependencies = [ "cfg-if", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", ] [[package]] @@ -1594,7 +1580,7 @@ dependencies = [ "getopts", "log", "packsquash", - "time 0.3.9", + "time", "tokio", "toml", "vergen", @@ -2202,17 +2188,6 @@ dependencies = [ "syn", ] -[[package]] -name = "time" -version = "0.1.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" -dependencies = [ - "libc", - "wasi 0.10.0+wasi-snapshot-preview1", - "winapi", -] - [[package]] name = "time" version = "0.3.9" @@ -2222,8 +2197,16 @@ dependencies = [ "itoa", "libc", "num_threads", + "serde", + "time-macros", ] +[[package]] +name = "time-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42657b1a6f4d817cda8e7a0ace261fe0cc946cf3a80314390b22cc61ae080792" + [[package]] name = "tiny-keccak" version = "2.0.2" @@ -2427,7 +2410,7 @@ dependencies = [ "git2", "rustversion", "thiserror", - "time 0.3.9", + "time", ] [[package]] @@ -2459,12 +2442,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "wasi" -version = "0.10.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -2639,10 +2616,10 @@ version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "757a458f9bfab0542c11feed99bd492cbe23add50515bd8eecf8c6973673d32d" dependencies = [ - "chrono", "log", "serde", "thiserror", + "time", "widestring", "winapi", ] diff --git a/deny.toml b/deny.toml index 97e97084d..986244ed8 100644 --- a/deny.toml +++ b/deny.toml @@ -14,11 +14,6 @@ unmaintained = "warn" yanked = "deny" notice = "warn" ignore = [ - # This old version of time pulled by chrono might dereference a null - # pointer in Unix platforms. But this is not a concern at build time, - # and Windows builds (which actually use this library at runtime) are - # not affected - "RUSTSEC-2020-0071", # Criterion depends on serde_cbor, which is unmaintained and has some quirks, but works: # https://github.com/pyfisch/cbor/issues/179 "RUSTSEC-2021-0127" @@ -99,10 +94,6 @@ multiple-versions = "warn" # dependencies. It's best to have a warning than skipping crates here wildcards = "warn" highlight = "all" -skip = [ - # chrono depends on this old version of the time crate - { name = "time", version = "=0.1.44" } -] skip-tree = [ # An ancient nom is pulled by the development dependency for # benchmarking perfcnt. Let's ignore that for now. It doesn't diff --git a/packages/packsquash/Cargo.toml b/packages/packsquash/Cargo.toml index c63f94056..7880d8ea3 100644 --- a/packages/packsquash/Cargo.toml +++ b/packages/packsquash/Cargo.toml @@ -61,7 +61,7 @@ regex = "1.5.6" [target.'cfg(windows)'.dependencies] winreg = "0.10.1" -wmi = "0.9.3" +wmi = { version = "0.9.3", default-features = false, features = ["time"] } [target.'cfg(target_os = "macos")'.dependencies] core-foundation = "0.9.3"