Repository navigation
fix(deps): replace chrono with strict built-in UTC timestamps (#900) - #922
Merged
Merged
Conversation
chrono is unmaintained (RUSTSEC-2026-0543). Minigraf used it only to parse and format UTC timestamps, so src/temporal.rs now does both without a dependency, and the deny.toml ignore is removed. Accepted forms are tightened for v3.0.0: YYYY-MM-DD, YYYY-MM-DDTHH:MM:SSZ and YYYY-MM-DDTHH:MM:SS.fZ (1-9 fractional digits, truncated to milliseconds), years 0000-9999, uppercase T/Z. Forms chrono also accepted (two-digit years, single-digit fields, lowercase z, a UTC suffix, whitespace, leap seconds, negative years) are now INT-004. Results for the kept forms match 328 vectors generated from chrono 0.4.45. The dist binary shrinks by 22,704 bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Refs #900 (RUSTSEC-2026-0543:
chronounmaintained).What
chrono.src/temporal.rsparses and formats UTC timestamps itself (no replacement crate), and the RUSTSEC-2026-0543 ignore is removed fromdeny.toml.YYYY-MM-DD,YYYY-MM-DDTHH:MM:SSZandYYYY-MM-DDTHH:MM:SS.fZ(1–9 fractional digits, truncated to milliseconds), years 0000–9999, uppercaseT/Z. chrono 0.4.45 also accepted two-digit years (24-01-15= year 24), single-digit fields, lowercasez, aUTCsuffix, surrounding/inner whitespace, leap seconds and negative years; these are nowINT-004. Offsets stay rejected.millis_to_timestamp_stringkeeps its whole-second output and returnsINT-005outside 0000–9999.Evidence
(input, millis)vectors generated from chrono 0.4.45 (src/temporal/chrono_vectors.rs) all parse to chrono's value; whole-second ones round-trip through the formatter.:as-of,:valid-at,:valid-from,:valid-to.--all-targets --all-features -D warnings), browser wasm build and cargo-deny pass.Docs
CHANGELOG (Unreleased, Changed),
docs/ERROR_REFERENCE.mdINT-004/INT-005, CLAUDE.md,docs/TEST_COVERAGE.md. Docs-site PR forcontent/datalog-reference.mdfollows.No
mainbackport: an unmaintained advisory is not a security fix and the stricter parsing is a behaviour change;mainkeeps itsdeny.tomlignore.🤖 Generated with Claude Code