Repository navigation
Upgrade sqlx 0.9.1, patch actix-http, replace chrono with time - #12
Merged
Merged
Conversation
added 2 commits
November 21, 2026 08:56
sqlx 0.9.1 allows libsqlite3-sys 0.40.0, which bundles SQLite 3.54.1 and fixes the WAL page-size disclosure, so the audit exemption is removed. Also bump actix-http 3.21.0 -> 3.22.0 for RUSTSEC-2026-0552/0553/0554 (chunked-trailer, chunk-extension and keep-alive header-timeout issues, published 2026-11-16). libsqlite3-sys keeps the same feature set (bundled, unlock_notify). New lock entries (libredox, objc2-*, etcetera) are not compiled for any target.
chrono is flagged unmaintained and cargo audit --deny unmaintained fails on it. Timestamps are stored as TEXT and compared lexically in SQL, so a new src/timefmt.rs keeps every string byte-for-byte: - format_z: %Y-%m-%dT%H:%M:%SZ (whole seconds, UTC) - format_naive / format_naive_minutes: %Y-%m-%dT%H:%M[:%S] - to_rfc3339: chrono's AutoSi fraction with +00:00 - rfc3339_secs_z / rfc3339_millis_z: to_rfc3339_opts(Secs|Millis, true) - serialize_rfc3339_z: chrono's serde output for ZecRates.updated_at - parse_rfc3339 / parse_z / parse_naive: chrono's parser leniency for T/t/space separators, extra fraction digits, ±HH:MM offsets and one-digit fields in parse_from_str formats Golden tests were captured from chrono 0.4.45. Known differences: a leap second (:60) parses as the end of :59, and parse_from_str inputs with a leading space, a '+' year or a non-four-digit year are rejected. sqlx's unused chrono feature is dropped. chrono, iana-time-zone and their platform crates leave Cargo.lock.
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.
What
libsqlite3-sys0.40.0, which bundles SQLite 3.54.1 and fixes RUSTSEC-2026-0459. The--ignore RUSTSEC-2026-0459line is removed fromaudit.yml.time0.3. chrono is unmaintained (RUSTSEC-2026-0543), andcargo audit --deny unmaintainedfailed on it. sqlx's unusedchronofeature is dropped as well. chrono,iana-time-zoneand their platform crates leaveCargo.lock.How the chrono swap keeps behaviour
Timestamps are stored as TEXT and compared lexically in SQL, so the output strings must not change. The new
src/timefmt.rsreproduces each format chrono produced:format_z:%Y-%m-%dT%H:%M:%SZformat_naive:%Y-%m-%dT%H:%M:%Sto_rfc3339: AutoSi fraction plus+00:00…ZvariantsZecRates.updated_atIts parsers match chrono's leniency for:
T/t/space separator, any number of fraction digits,±HH:MMoffsets below 24 hparse_from_strformats: one-digit fieldsThe golden tests come from chrono 0.4.45 output. Call sites are a mechanical rename (
.format_z(),.whole_seconds(),.unix_timestamp(), …). The previous naive-UTC comparisons now compare UTCOffsetDateTimes, which gives the same instants.Known differences, all on inputs we don't produce:
:60) parses as the end of:59.parse_from_strrejects a leading space, a+year, or a year that isn't four digits.timecaps years at 9999. User-supplied durations are capped at 365 days, or 365 × 365 days for subscriptions, so this can't be reached.Checks (local)
cargo test --locked: 143 passed (3 of them new golden tests), 3 ignored.cargo audit --deny unmaintained --deny unsound(with only the two existing RSA/atomic-polyfill ignores): clean.scripts/check-dependency-exposure.pypasses./api/healthreturnsok, and/api/ratesreturnsupdated_atas2026-11-21T12:19:28.703971Z, the same format chrono's serializer wrote.Payment amounts and SQL are unchanged. Not deployed.