From 16db0605da168a81aa8204df61f4f58d674465fe Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Tue, 31 Dec 2024 18:01:31 +0000 Subject: [PATCH] bump chrono-tz to 0.9.0 --- Cargo.lock | 8 ++++---- src/expr/Cargo.toml | 2 +- src/pgtz/Cargo.toml | 4 ++-- src/proto/Cargo.toml | 2 +- src/proto/src/chrono.rs | 3 ++- src/repr/Cargo.toml | 2 +- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ec608dd0e3595..e42364449e0bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1358,9 +1358,9 @@ dependencies = [ [[package]] name = "chrono-tz" -version = "0.8.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa48fa079165080f11d7753fd0bc175b7d391f276b965fe4b55bfad67856e463" +checksum = "93698b29de5e97ad0ae26447b344c482a7284c737d9ddc5f9e52b74a336671bb" dependencies = [ "chrono", "chrono-tz-build", @@ -1371,9 +1371,9 @@ dependencies = [ [[package]] name = "chrono-tz-build" -version = "0.1.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9998fb9f7e9b2111641485bf8beb32f92945f97f92a3d061f744cfef335f751" +checksum = "0c088aee841df9c3041febbb73934cfc39708749bf96dc827e3359cd39ef11b1" dependencies = [ "parse-zoneinfo", "phf", diff --git a/src/expr/Cargo.toml b/src/expr/Cargo.toml index ddf5116751d10..4343adccbd80c 100644 --- a/src/expr/Cargo.toml +++ b/src/expr/Cargo.toml @@ -23,7 +23,7 @@ anyhow = "1.0.66" bytes = "1.3.0" bytesize = "1.1.0" chrono = { version = "0.4.35", default-features = false, features = ["std"] } -chrono-tz = { version = "0.8.1", features = ["serde", "case-insensitive"] } +chrono-tz = { version = "0.9.0", features = ["serde", "case-insensitive"] } crc32fast = "1.4.2" csv = "1.1.6" dec = "0.4.8" diff --git a/src/pgtz/Cargo.toml b/src/pgtz/Cargo.toml index e31ac0a557f6b..26235d0c9537e 100644 --- a/src/pgtz/Cargo.toml +++ b/src/pgtz/Cargo.toml @@ -11,7 +11,7 @@ workspace = true [dependencies] chrono = { version = "0.4.35", default-features = false, features = ["serde", "std"] } -chrono-tz = { version = "0.8.1", features = ["serde", "case-insensitive"] } +chrono-tz = { version = "0.9.0", features = ["serde", "case-insensitive"] } mz-lowertest = { path = "../lowertest", default-features = false } mz-ore = { path = "../ore", features = ["test"], default-features = false } mz-proto = { path = "../proto", features = ["chrono"], default-features = false } @@ -25,7 +25,7 @@ workspace-hack = { version = "0.0.0", path = "../workspace-hack", optional = tru [build-dependencies] anyhow = "1.0.66" -chrono-tz = { version = "0.8.1", features = ["serde", "case-insensitive"] } +chrono-tz = { version = "0.9.0", features = ["serde", "case-insensitive"] } mz-build-tools = { path = "../build-tools", default-features = false } mz-ore = { path = "../ore", default-features = false } phf_codegen = "0.11.1" diff --git a/src/proto/Cargo.toml b/src/proto/Cargo.toml index eafd3beb7eecc..260b92896736d 100644 --- a/src/proto/Cargo.toml +++ b/src/proto/Cargo.toml @@ -14,7 +14,7 @@ workspace = true anyhow = "1.0.66" bytes = "1.3.0" chrono = { version = "0.4.35", default-features = false, features = ["serde", "std"], optional = true } -chrono-tz = { version = "0.8.1", features = ["serde", "case-insensitive"], optional = true } +chrono-tz = { version = "0.9.0", features = ["serde", "case-insensitive"], optional = true } globset = "0.4.14" http = "1.1.0" mz-ore = { path = "../ore", default-features = false, features = ["proptest", "test"] } diff --git a/src/proto/src/chrono.rs b/src/proto/src/chrono.rs index 86dd15b9cc316..8a2b1844466cd 100644 --- a/src/proto/src/chrono.rs +++ b/src/proto/src/chrono.rs @@ -132,7 +132,8 @@ impl RustType for chrono_tz::Tz { } fn from_proto(proto: ProtoTz) -> Result { - Tz::from_str(&proto.name).map_err(TryFromProtoError::DateConversionError) + Tz::from_str(&proto.name) + .map_err(|parse_error| TryFromProtoError::DateConversionError(parse_error.to_string())) } } diff --git a/src/repr/Cargo.toml b/src/repr/Cargo.toml index 9b34c853d0e35..f39115a93983f 100644 --- a/src/repr/Cargo.toml +++ b/src/repr/Cargo.toml @@ -33,7 +33,7 @@ bytes = "1.3.0" cfg-if = "1.0.0" columnation = "0.1.0" chrono = { version = "0.4.35", default-features = false, features = ["serde", "std"] } -chrono-tz = { version = "0.8.1", features = ["serde", "case-insensitive"] } +chrono-tz = { version = "0.9.0", features = ["serde", "case-insensitive"] } compact_bytes = "0.1.2" dec = "0.4.8" differential-dataflow = "0.13.2"