From dfdec8595a24332f1e7991a745250e428f257034 Mon Sep 17 00:00:00 2001 From: kleinbem Date: Fri, 4 Dec 2026 12:15:51 +0000 Subject: [PATCH] chore(deps): bump jiff to 1.1.0 and tower-http to 0.7.1 --- Cargo.lock | 42 +++++++++++++++++++++++++++++------------- Cargo.toml | 4 ++-- src/main.rs | 2 +- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2a02230..7e7061e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -307,7 +307,7 @@ dependencies = [ "tempfile", "tokio", "tower", - "tower-http", + "tower-http 0.7.1", "tracing", "tracing-subscriber", ] @@ -1080,9 +1080,9 @@ checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4" [[package]] name = "jiff" -version = "0.2.46" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "175dc66334db3b9ab9985bf8b61cfed50dc16d20964bb47f9e479adcae984a7f" +checksum = "379ed44bd4e16d3926160e2b3a78b79ca0952ef5c037f124f554842ba272ef92" dependencies = [ "jiff-core", "jiff-static", @@ -1095,30 +1095,30 @@ dependencies = [ [[package]] name = "jiff-core" -version = "0.1.8" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e599b80292e597019b8b3e392de3f4bea2959ddfb8c7dff60e035e9e311a2c1b" +checksum = "0df46fc314b4f458aee614afcd8676ed6cb3637413aa359d47d2646cbc038b79" dependencies = [ "log", ] [[package]] name = "jiff-static" -version = "0.2.46" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7b1af7547d47354bc438d797e3854601bde8f8d185780c5ba4ab27afa54f1ba" +checksum = "27b729c549d3efb5855b3c80b0ee8ee1850d56330a127382fe2760965741c1f3" dependencies = [ "jiff-core", "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.10", ] [[package]] name = "jiff-tzdb" -version = "0.1.10" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0980fca2cc272465bd60e82397607ba9f33add9e48defd77923301bbd03808f2" +checksum = "12e71a1b68a875a44a33bb7a1dd84392cb77145a3367a552a3cfe6a4f5cf3afc" [[package]] name = "js-sys" @@ -1693,7 +1693,7 @@ dependencies = [ "tokio", "tokio-rustls", "tower", - "tower-http", + "tower-http 0.6.11", "tower-service", "url", "wasm-bindgen", @@ -2449,6 +2449,24 @@ name = "tower-http" version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + +[[package]] +name = "tower-http" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08a05a66a4fdd61cbbe0a1d755ffe0ca6aba159dd4820936a0ff8a8278245b9c" dependencies = [ "bitflags", "bytes", @@ -2465,10 +2483,8 @@ dependencies = [ "pin-project-lite", "tokio", "tokio-util", - "tower", "tower-layer", "tower-service", - "url", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index e58b7d8..f6b8fc4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ axum = { version = "0.8", features = ["json"] } clap = { version = "4.5", features = ["derive", "env"] } hex = "0.4.3" hmac = "0.13.0" -jiff = { version = "0.2", default-features = false, features = ["std", "tzdb-bundle-always", "serde"] } +jiff = { version = "1.0", default-features = false, features = ["std", "tzdb-bundle-always", "serde"] } jsonwebtoken = { version = "12.0", features = ["rust_crypto"] } regex = "1.11" reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] } @@ -35,7 +35,7 @@ sha2 = "0.11.1" sqlx = { version = "0.9.0", default-features = false, features = ["runtime-tokio", "tls-rustls", "sqlite", "macros", "migrate"] } subtle = "2.6" tokio = { version = "1.40", features = ["macros", "rt-multi-thread", "signal", "time"] } -tower-http = { version = "0.6", features = ["fs", "cors"] } +tower-http = { version = "0.7", features = ["fs", "cors"] } tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/src/main.rs b/src/main.rs index 58714de..6b048f7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -267,7 +267,7 @@ async fn run(cli: Cli) -> Result { let tz = TimeZone::get("Europe/Dublin").unwrap_or(TimeZone::UTC); let next = snap .next_free_at - .map(|t| t.to_zoned(tz).strftime("%Y-%m-%d %H:%M %Z").to_string()) + .map(|t| t.to_zoned_datetime(tz).strftime("%Y-%m-%d %H:%M %Z").to_string()) .unwrap_or_else(|| "unknown".to_string()); println!( "rate-limited (next free: {next}, confidence: {})",