From d1f180fbc5b09159f019bc5655b10ff3297a4a9c Mon Sep 17 00:00:00 2001 From: Joshua Potts <8704475+iamjpotts@users.noreply.github.com> Date: Wed, 10 Jul 2024 21:37:17 -0400 Subject: [PATCH] fix: Minimally upgrade minimal dependencies to resolve build issues on declared minimum versions Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com> --- Cargo.toml | 2 +- sqlx-core/Cargo.toml | 4 ++-- sqlx-mysql/Cargo.toml | 2 +- sqlx-mysql/src/types/chrono.rs | 1 + sqlx-postgres/Cargo.toml | 2 +- sqlx-sqlite/Cargo.toml | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2a7c75d8..2e78e946 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -132,7 +132,7 @@ sqlx = { version = "=0.8.0-alpha.0", path = ".", default-features = false } # These are optional unless enabled in a workspace crate. bigdecimal = "0.4.0" bit-vec = "0.6.3" -chrono = { version = "0.4.22", default-features = false } +chrono = { version = "0.4.34", default-features = false } ipnetwork = "0.20.0" mac_address = "1.1.5" rust_decimal = { version = "1.26.1", default-features = false, features = ["std"] } diff --git a/sqlx-core/Cargo.toml b/sqlx-core/Cargo.toml index 2917932b..f19c1a1e 100644 --- a/sqlx-core/Cargo.toml +++ b/sqlx-core/Cargo.toml @@ -55,7 +55,7 @@ atoi = "2.0" bytes = "1.1.0" byteorder = { version = "1.4.3", default-features = false, features = ["std"] } -chrono = { version = "0.4.19", default-features = false, features = ["clock"], optional = true } +chrono = { version = "0.4.34", default-features = false, features = ["clock"], optional = true } crc = { version = "3", optional = true } crossbeam-queue = "0.3.2" digest = { version = "0.10.0", default-features = false, optional = true, features = ["std"] } @@ -67,7 +67,7 @@ futures-io = "0.3.24" futures-intrusive = "0.5.0" futures-util = { version = "0.3.19", default-features = false, features = ["alloc", "sink", "io"] } hex = "0.4.3" -log = { version = "0.4.14", default-features = false } +log = { version = "0.4.18", default-features = false } memchr = { version = "2.4.1", default-features = false } num-bigint = { version = "0.4.0", default-features = false, optional = true, features = ["std"] } once_cell = "1.9.0" diff --git a/sqlx-mysql/Cargo.toml b/sqlx-mysql/Cargo.toml index 21214e9b..cc0100a9 100644 --- a/sqlx-mysql/Cargo.toml +++ b/sqlx-mysql/Cargo.toml @@ -53,7 +53,7 @@ either = "1.6.1" generic-array = { version = "0.14.4", default-features = false } hex = "0.4.3" itoa = "1.0.1" -log = "0.4.17" +log = "0.4.18" memchr = { version = "2.4.1", default-features = false } once_cell = "1.9.0" percent-encoding = "2.1.0" diff --git a/sqlx-mysql/src/types/chrono.rs b/sqlx-mysql/src/types/chrono.rs index fc39d32c..ed39844b 100644 --- a/sqlx-mysql/src/types/chrono.rs +++ b/sqlx-mysql/src/types/chrono.rs @@ -235,6 +235,7 @@ impl Encode<'_, MySql> for NaiveDateTime { self.hour(), self.minute(), self.second(), + #[allow(deprecated)] self.timestamp_subsec_nanos(), ) { // if hour, minutes, seconds and micro_seconds are all 0, diff --git a/sqlx-postgres/Cargo.toml b/sqlx-postgres/Cargo.toml index 1ed9b14f..13dac258 100644 --- a/sqlx-postgres/Cargo.toml +++ b/sqlx-postgres/Cargo.toml @@ -53,7 +53,7 @@ dotenvy = { workspace = true } hex = "0.4.3" home = "0.5.5" itoa = "1.0.1" -log = "0.4.17" +log = "0.4.18" memchr = { version = "2.4.1", default-features = false } num-bigint = { version = "0.4.3", optional = true } once_cell = "1.9.0" diff --git a/sqlx-sqlite/Cargo.toml b/sqlx-sqlite/Cargo.toml index 78c25645..d60f5ea9 100644 --- a/sqlx-sqlite/Cargo.toml +++ b/sqlx-sqlite/Cargo.toml @@ -39,7 +39,7 @@ flume = { version = "0.11.0", default-features = false, features = ["async"] } atoi = "2.0" -log = "0.4.17" +log = "0.4.18" tracing = { version = "0.1.37", features = ["log"] } serde = { version = "1.0.145", features = ["derive"], optional = true }