From cc99df5ef14b8a330339b3d5ec60189a4805400b Mon Sep 17 00:00:00 2001 From: Justin Ma Date: Fri, 5 Aug 2022 19:53:01 +0800 Subject: [PATCH] upgrade chrono to v0.4.20 (#6235) --- Cargo.lock | 7 ++++--- Cargo.toml | 2 +- crates/nu-cli/Cargo.toml | 2 +- crates/nu-command/Cargo.toml | 4 ++-- crates/nu-command/src/formats/to/toml.rs | 2 +- crates/nu-engine/Cargo.toml | 2 +- crates/nu-parser/Cargo.toml | 2 +- crates/nu-protocol/Cargo.toml | 2 +- tests/fixtures/formats/cargo_sample.toml | 6 +++--- 9 files changed, 15 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e8738525cb..8492d6d284 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -519,15 +519,16 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.19" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" +checksum = "6127248204b9aba09a362f6c930ef6a78f2c1b2215f8a7b398c06e1083f17af0" dependencies = [ - "libc", + "js-sys", "num-integer", "num-traits", "serde", "time 0.1.44", + "wasm-bindgen", "winapi 0.3.9", ] diff --git a/Cargo.toml b/Cargo.toml index 5f99e176ab..1cb1a31213 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ members = [ ] [dependencies] -chrono = { version = "0.4.19", features = ["serde"] } +chrono = { version = "0.4.20", features = ["serde"] } crossterm = "0.24.0" ctrlc = "3.2.1" log = "0.4" diff --git a/crates/nu-cli/Cargo.toml b/crates/nu-cli/Cargo.toml index 7be1acc4c2..2494fb425b 100644 --- a/crates/nu-cli/Cargo.toml +++ b/crates/nu-cli/Cargo.toml @@ -21,7 +21,7 @@ nu-ansi-term = "0.46.0" nu-color-config = { path = "../nu-color-config", version = "0.66.3" } reedline = { version = "0.9.0", features = ["bashisms", "sqlite"]} -chrono = "0.4.19" +chrono = "0.4.20" crossterm = "0.24.0" fancy-regex = "0.10.0" fuzzy-matcher = "0.3.7" diff --git a/crates/nu-command/Cargo.toml b/crates/nu-command/Cargo.toml index afab7ff6ac..40bf4e5b96 100644 --- a/crates/nu-command/Cargo.toml +++ b/crates/nu-command/Cargo.toml @@ -31,9 +31,9 @@ base64 = "0.13.0" byteorder = "1.4.3" bytesize = "1.1.0" calamine = "0.18.0" -chrono = { version = "0.4.19", features = ["serde"] } +chrono = { version = "0.4.20", features = ["serde"] } chrono-humanize = "0.2.1" -chrono-tz = "0.6.1" +chrono-tz = "0.6.3" crossterm = "0.24.0" csv = "1.1.6" dialoguer = "0.9.0" diff --git a/crates/nu-command/src/formats/to/toml.rs b/crates/nu-command/src/formats/to/toml.rs index f3927e0b59..2dbec4a855 100644 --- a/crates/nu-command/src/formats/to/toml.rs +++ b/crates/nu-command/src/formats/to/toml.rs @@ -224,7 +224,7 @@ mod tests { [dependencies] rustyline = "4.1.0" sysinfo = "0.8.4" - chrono = { version = "0.4.6", features = ["serde"] } + chrono = { version = "0.4.20", features = ["serde"] } "#, ), Span::test_data(), diff --git a/crates/nu-engine/Cargo.toml b/crates/nu-engine/Cargo.toml index e4ed48fd98..804fe47f9a 100644 --- a/crates/nu-engine/Cargo.toml +++ b/crates/nu-engine/Cargo.toml @@ -12,7 +12,7 @@ nu-path = { path = "../nu-path", version = "0.66.3" } nu-glob = { path = "../nu-glob", version = "0.66.3" } nu-utils = { path = "../nu-utils", version = "0.66.3" } -chrono = { version="0.4.19", features=["serde"] } +chrono = { version="0.4.20", features=["serde"] } sysinfo = "0.24.6" [features] diff --git a/crates/nu-parser/Cargo.toml b/crates/nu-parser/Cargo.toml index 1cade2482c..9633ec8fce 100644 --- a/crates/nu-parser/Cargo.toml +++ b/crates/nu-parser/Cargo.toml @@ -7,7 +7,7 @@ name = "nu-parser" version = "0.66.3" [dependencies] -chrono = "0.4.19" +chrono = "0.4.20" itertools = "0.10" miette = "5.1.0" thiserror = "1.0.31" diff --git a/crates/nu-protocol/Cargo.toml b/crates/nu-protocol/Cargo.toml index d2ddfa750c..0e4a7a310b 100644 --- a/crates/nu-protocol/Cargo.toml +++ b/crates/nu-protocol/Cargo.toml @@ -14,7 +14,7 @@ nu-path = { path = "../nu-path", version = "0.66.3" } nu-json = { path = "../nu-json", version = "0.66.3" } byte-unit = "4.0.9" -chrono = { version="0.4.19", features=["serde"] } +chrono = { version="0.4.20", features=["serde"] } chrono-humanize = "0.2.1" fancy-regex = "0.10.0" indexmap = { version="1.7", features=["serde-1"] } diff --git a/tests/fixtures/formats/cargo_sample.toml b/tests/fixtures/formats/cargo_sample.toml index 5b4534559f..610b439c00 100644 --- a/tests/fixtures/formats/cargo_sample.toml +++ b/tests/fixtures/formats/cargo_sample.toml @@ -11,8 +11,8 @@ edition = "2018" [dependencies] rustyline = "4.1.0" sysinfo = "0.8.4" -chrono = { version = "0.4.6", features = ["serde"] } -chrono-tz = "0.5.1" +chrono = { version = "0.4.20", features = ["serde"] } +chrono-tz = "0.6.3" derive-new = "0.5.6" prettytable-rs = "0.8.0" itertools = "0.8.0" @@ -21,7 +21,7 @@ conch-parser = "0.1.1" nom = "5.0.0-beta1" dunce = "1.0.0" indexmap = { version = "1.0.2", features = ["serde-1"] } -chrono-humanize = "0.0.11" +chrono-humanize = "0.2.1" byte-unit = "2.1.0" ordered-float = "1.0.2" prettyprint = "0.6.0"