Repository navigation
refactor!: migrate from chrono to jiff (RUSTSEC-2026-0543) - #483
Merged
Merged
Conversation
url 2.5.8 overflows the stack in Url::origin() on deeply nested blob: URLs. 2.5.9 requires form_urlencoded 1.2.3, so that moves with it. Applied to the root and dagger/rust-sdk lockfiles. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
chrono is flagged unmaintained (RUSTSEC-2026-0543) with no fixed version; its maintainer recommends jiff. Replace it throughout: - DateTime<Utc> becomes jiff::Timestamp and NaiveDate becomes jiff::civil::Date, including in public model fields and signatures. - New utils::time module holds the few helpers the crate needs on top of jiff: RFC 3339 text in the shapes existing output uses, UTC date access, and whole-day arithmetic. - chrono is removed from Cargo.toml and from the root and fuzz lockfiles. BREAKING CHANGE: public fields and functions that exposed chrono types now expose jiff types. Serialized timestamps keep the Z suffix, but fractional seconds are written with the shortest exact digits (.5Z) where chrono padded to 3, 6 or 9 (.500Z). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chronois flagged unmaintained by RUSTSEC-2026-0543, filed by its own maintainer, with no fixed version. The advisory recommendsjiffortime; this moves the crate tojiff1.x, which clears thecargo-deny (advisories)failure.Stacked on #482 (the
urladvisory fix); its commit is included here. Merge #482 first, or merge this one alone.What changed
DateTime<Utc>→jiff::Timestamp,NaiveDate→jiff::civil::Date, across about 120 files (roughly half are tests).utils::timemodule with the few helpers needed on top ofjiff: RFC 3339 text in the exact shapes existing output uses, UTC date access, and whole-day arithmetic. It has its own unit tests pinning those formats.chronoremoved fromCargo.tomland from the root andfuzzlockfiles. Nothing else in the tree depended on it.CertificateProperties::is_expiring_soon_at, the EUCC expiry window) now saturate instead of panicking, becausejiff's range ends at year 9999.Breaking changes (need an Upgrade note in the next release)
chronotypes now exposejifftypes. Callers construct values withjiff::Timestamp/jiff::civil::Date, or the helpers insbom_tools::utils::time.Zsuffix, but the fraction is written with the shortest exact digits (.5Z) wherechronopadded to 3, 6 or 9 (.500Z). Whole-second values are unchanged. Text produced throughto_rfc3339*(emitted SBOMs, diff and report fields) is byte-identical to before.Behaviour differences to be aware of
jiff's: slightly more lenient thanchrono(for example a space instead ofT), and a leap second:60is clamped to:59.Verification
cargo test --locked --all-features: 3264 passed, 0 failed.cargo test --locked: 3224 passed, 0 failed. Snapshot and golden-report tests pass unchanged.cargo clippy -- -D warningsandcargo clippy --all-features -- -D warningsclean;cargo fmt --checkclean;cargo check --no-default-features --features fficlean.cargo-deny,cargo audit, the fuzz targets, the bindings jobs and non-macOS platforms. CI covers these.🤖 Generated with Claude Code