Skip to content

Update dependencies and replace chrono with jiff - #102

Merged
liby merged 2 commits into
mainfrom
feature/dependency-updates
Nov 20, 2026
Merged

liby merged 2 commits into
mainfrom
feature/dependency-updates

Conversation

@liby

@liby liby commented Nov 20, 2026

Copy link
Copy Markdown
Member

cargo deny check fails on main and on every open Renovate pull request. This takes all the pending updates in one change and clears the three findings behind those failures, so it supersedes #91, #97, and #101.

RUSTSEC-2026-0459 flags the SQLite that libsqlite3-sys 0.38.2 bundles; rusqlite 0.42.0 brings libsqlite3-sys 0.40.0 with SQLite 3.54.1. RUSTSEC-2026-0543 marks every chrono release unmaintained, so chrono is replaced with jiff, which its maintainer recommends. The lock file update brings two licenses cargo-deny rejected, zstd-sys's BSD-2-Clause legacy decoders and ar_archive_writer's Apache-2.0 WITH LLVM-exception, and each is allowed for that crate alone. The same change takes zstd 0.14.4, Rust 1.100.0, and taiki-e/install-action v2.90.3. regex 1.13.2, clap 4.6.9, and jiff 1.0 stay out until they are seven days old, as the shared Renovate policy asks.

PARSER_VERSION rises to 6 because src/normalize.rs changed, so after upgrading, refreshes reindex history within their budget; sessidx index finishes it in one run. The release notes need to say so.

Two things deserve a review:

  • Since rusqlite 0.41, progress_handler needs &mut Connection, which a transaction guard's borrow prevents. The lookups now begin their read snapshot with BEGIN on the connection, and it ends when the connection closes, as the guard's rollback did.
  • jiff reads every RFC 3339 form agents write the same way and stores the same millisecond text. A differential run of the old and new parsers over about 165,000 strings and 173,000 filter pairs found differences only outside that: a leap second is stored as :59, times past 9999-12-30T22:00:00Z or with more than nine fractional digits are refused, and other ISO 8601 spellings such as +02 offsets are now accepted. The timestamps in this machine's session logs had only the two shapes both libraries treat identically.

liby added 2 commits November 21, 2026 02:36
RUSTSEC-2026-0543 marks every chrono release unmaintained, filed by
its maintainer, who recommends jiff, so `cargo deny check` fails on it
and no chrono update can clear it. jiff comes without its default
features: the index needs UTC instants and civil dates only, so no
time zone database is built. It is pinned at 0.2.43 with the jiff-core
that shipped beside it, because 1.0.0 is five days old and the shared
Renovate policy waits seven; the 1.0 release notes list no change to
the calls used here.

Recorded timestamps and `--since`/`--until` read every RFC 3339 form
as before and store the same UTC millisecond text. What differs lies
outside what the agents write: a second of 60 is stored as 59, a time
with more than nine fractional digits, a U+2212 minus sign, or an
instant after 9999-12-30T22:00:00Z is refused, a year before 0 is
written with six digits, and other ISO 8601 spellings such as
`20261001T00Z` or an offset of `+02` are now read. A filter with a
fraction of a second serializes without its trailing zeros, so a
cursor issued for one by an earlier binary is refused.

`PARSER_VERSION` rises to 6 because `src/normalize.rs` changed, so
refreshes reindex the files an earlier version indexed.
RUSTSEC-2026-0459 fails `cargo deny check` on main: the SQLite that
libsqlite3-sys 0.38.2 bundles can return uninitialized memory when a
database is opened beside a `-wal` file of another page size.
rusqlite 0.42.0 brings libsqlite3-sys 0.40.0, which bundles SQLite
3.54.1.

Since rusqlite 0.41, `Connection::progress_handler` takes the
connection exclusively, so `search`, `scan`, and `sql` take
`&mut Connection`, and `with_deadline` passes its work a shared
borrow. A transaction guard borrows the connection for as long as it
lives, so the commands begin their read snapshot with `BEGIN` and it
ends with the connection, as the guard's rollback did.
`Statement::column_names` now returns an iterator.

The lock file takes the versions Renovate's lock file maintenance
proposed, and with them zstd 0.14.4, Rust 1.100.0, and
taiki-e/install-action v2.90.3. Two of their licenses needed placing.
zstd-sys 2.1.3 declares BSD-2-Clause for the legacy-format decoders,
which only its `legacy` feature builds and this build leaves off;
cargo-deny and cargo-about accept it for that crate, and the package's
notices carry its text. ar_archive_writer, a build dependency of psm
that pest 2.9.6 brings in, is Apache-2.0 WITH LLVM-exception and is
allowed for that crate alone.

regex 1.13.2, clap 4.6.9, and bumpalo 3.20.4 stay out until they are
seven days old, as the shared Renovate policy asks.
@liby
liby merged commit 65a4bc8 into main Nov 20, 2026
5 of 7 checks passed
@liby
liby deleted the feature/dependency-updates branch November 20, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant