From 64dfea4b479112a26ea433a89d761f79aafff247 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Wed, 30 Aug 2023 08:12:18 +0200 Subject: [PATCH] Adapt chrono settings to remove old time crate --- fuzz/Cargo.lock | 22 +--------------------- fuzz/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index 22dd0ea..736d83b 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -67,10 +67,7 @@ checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" dependencies = [ "android-tzdata", "iana-time-zone", - "js-sys", "num-traits", - "time", - "wasm-bindgen", "winapi", ] @@ -99,7 +96,7 @@ checksum = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4" dependencies = [ "cfg-if", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", ] [[package]] @@ -289,29 +286,12 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "time" -version = "0.1.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a" -dependencies = [ - "libc", - "wasi 0.10.0+wasi-snapshot-preview1", - "winapi", -] - [[package]] name = "unicode-ident" version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0" -[[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" diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 1435c07..2f04985 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -10,7 +10,7 @@ cargo-fuzz = true rand = "0.8.5" libfuzzer-sys = "0.4" regex = "1.9.4" -chrono = "0.4" +chrono = { version="0.4", default-features=false, features=["std", "alloc", "clock"] } [dependencies.parse_datetime] path = "../"