mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
100 lines
2.5 KiB
Diff
100 lines
2.5 KiB
Diff
From aed6de9bdaa7f0599256025f3488a0bf5ea24842 Mon Sep 17 00:00:00 2001
|
|
From: Alexey Zapparov <alexey@zapparov.com>
|
|
Date: Fri, 16 Dec 2022 06:17:49 +0100
|
|
Subject: [PATCH] Remove time 0.1.x dependency
|
|
|
|
See: https://rustsec.org/advisories/RUSTSEC-2020-0071
|
|
See: https://github.com/Schniz/fnm/pull/884
|
|
Signed-off-by: Alexey Zapparov <alexey@zapparov.com>
|
|
---
|
|
Cargo.lock | 24 +++---------------------
|
|
Cargo.toml | 2 +-
|
|
2 files changed, 4 insertions(+), 22 deletions(-)
|
|
|
|
diff --git a/Cargo.lock b/Cargo.lock
|
|
index a09159e..da1325d 100644
|
|
--- a/Cargo.lock
|
|
+++ b/Cargo.lock
|
|
@@ -220,7 +220,6 @@ dependencies = [
|
|
"num-integer",
|
|
"num-traits",
|
|
"serde",
|
|
- "time 0.1.44",
|
|
"wasm-bindgen",
|
|
"winapi",
|
|
]
|
|
@@ -717,7 +716,7 @@ checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31"
|
|
dependencies = [
|
|
"cfg-if",
|
|
"libc",
|
|
- "wasi 0.11.0+wasi-snapshot-preview1",
|
|
+ "wasi",
|
|
]
|
|
|
|
[[package]]
|
|
@@ -1059,7 +1058,7 @@ checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de"
|
|
dependencies = [
|
|
"libc",
|
|
"log",
|
|
- "wasi 0.11.0+wasi-snapshot-preview1",
|
|
+ "wasi",
|
|
"windows-sys 0.42.0",
|
|
]
|
|
|
|
@@ -1724,17 +1723,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.17"
|
|
@@ -1946,12 +1934,6 @@ dependencies = [
|
|
"try-lock",
|
|
]
|
|
|
|
-[[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"
|
|
@@ -2233,7 +2215,7 @@ dependencies = [
|
|
"hmac",
|
|
"pbkdf2",
|
|
"sha1",
|
|
- "time 0.3.17",
|
|
+ "time",
|
|
"zstd",
|
|
]
|
|
|
|
diff --git a/Cargo.toml b/Cargo.toml
|
|
index 6c02ae4..11f72c9 100644
|
|
--- a/Cargo.toml
|
|
+++ b/Cargo.toml
|
|
@@ -12,7 +12,7 @@ description = "Fast and simple Node.js version manager"
|
|
serde = { version = "1.0.147", features = ["derive"] }
|
|
clap = { version = "3.2.23", features = ["derive", "env"] }
|
|
serde_json = "1.0.88"
|
|
-chrono = { version = "0.4.23", features = ["serde"] }
|
|
+chrono = { version = "0.4.23", default-features = false, features = ["clock", "serde", "std", "wasmbind"] }
|
|
tar = "0.4.38"
|
|
xz2 = "0.1.7"
|
|
node-semver = "2.1.0"
|
|
--
|
|
2.37.4
|
|
|