Просмотр исходного кода

fix(chrono): RUSTSEC-2020-0071

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 лет назад
Родитель
Сommit
6016009feb
2 измененных файлов с 2 добавлено и 22 удалено
  1. 0 20
      Cargo.lock
  2. 2 2
      Cargo.toml

+ 0 - 20
Cargo.lock

@@ -79,10 +79,7 @@ checksum = "f56b4c72906975ca04becb8a30e102dfecddd0c06181e3e95ddc444be28881f8"
 dependencies = [
  "android-tzdata",
  "iana-time-zone",
- "js-sys",
  "num-traits",
- "time",
- "wasm-bindgen",
  "windows-targets",
 ]
 
@@ -572,17 +569,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",
- "winapi",
-]
-
 [[package]]
 name = "timeago"
 version = "0.4.1"
@@ -668,12 +654,6 @@ version = "0.2.12"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "cbdbff6266a24120518560b5dc983096efb98462e51d0d68169895b237be3e5d"
 
-[[package]]
-name = "wasi"
-version = "0.10.0+wasi-snapshot-preview1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
-
 [[package]]
 name = "wasm-bindgen"
 version = "0.2.87"

+ 2 - 2
Cargo.toml

@@ -38,7 +38,7 @@ name = "eza"
 [dependencies]
 ansiterm = "0.12.2"
 gethostname = "0.4.3"
-chrono = "0.4"
+chrono = { version = "0.4.22", default-features = false, features = ["clock"] }
 glob = "0.3"
 lazy_static = "1.3"
 libc = "0.2"
@@ -68,7 +68,7 @@ proc-mounts = "0.3"
 uzers = "0.11.2"
 
 [build-dependencies]
-chrono = "0.4"
+chrono = { version = "0.4.22", default-features = false, features = ["clock"] }
 
 [features]
 default = [ "git" ]