Skip to content

chore(deps): Rust 1.98.1, flake refresh, and all dependency updates - #2321

Merged
robcohen merged 6 commits into
mainfrom
chore/deps-refresh-rust-1.98
Sep 15, 2026
Merged

robcohen merged 6 commits into
mainfrom
chore/deps-refresh-rust-1.98

Conversation

@robcohen

@robcohen robcohen commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Refreshes the toolchain and every dependency surface in one PR. It includes the four open dependabot PRs; all lockfiles were regenerated, not merged textually (see #1787).

Rust toolchain: 1.97.0 → 1.98.1

  • Pin: all 39 pinned stable CI pins and rust-toolchain.toml's channel move together, per the Toolchain Bumps section of CLAUDE.md. The CLAUDE.md example pin is updated to match.
  • Docker builder image: rust:1.96-alpine → rust:1.98.1-alpine. The image copies rust-toolchain.toml, so rustup inside it would switch to the pinned channel anyway; the base image now matches.
  • MSRV unchanged at 1.96. rust-version and clippy.toml are untouched; raising the MSRV is a separate decision.
  • The MSRV job now really runs 1.96. Before this, it never did (found by Copilot review). It installed 1.96 and then ran a bare cargo check. rust-toolchain.toml's file override beats the installed toolchain, so on main the job ran 1.97.0. The log said "toolchain '1.97.0' is currently in use (overridden by rust-toolchain.toml)". The step now sets RUSTUP_TOOLCHAIN: "1.96", which outranks the file, and prints rustc --version. A local RUSTUP_TOOLCHAIN=1.96.0 cargo check --workspace --all-features passes.
  • One new lint fixed: clippy::manual_midpoint in the Brent solver (rustledger-returns/src/lib.rs).
    • Change: 0.5 * (a + b) → f64::midpoint(a, b).
    • The result is bit-identical for finite, non-overflowing inputs, because halving is exact.
    • f64::midpoint is stable since 1.85, below the MSRV.

Nix flake

  • Inputs: nix flake update moves every input from its June lock to this week (nixpkgs, fenix, crane, flake-parts, treefmt-nix, advisory-db, process-compose-flake).
  • Dev shell toolchain: the shell's rustc moves from 1.96.0 to 1.98.1. It had been one version behind CI's clippy, so local clippy could pass while CI failed. The shell and CI now match.
  • Deprecation: stdenv.isDarwin → stdenv.hostPlatform.isDarwin, which removes an evaluation warning on every nix develop.
  • npmDepsHash: updated for the vscode lockfile below.
  • x86_64-darwin removed from systems. Nixpkgs 26.11 (nixos-unstable) dropped the platform, so on the new lock every x86_64-darwin output failed to evaluate. They still evaluate on main's June lock.
    • The allowDeprecatedx86_64Darwin block goes with it. Its comment said to revisit when Nixpkgs fully drops the platform.
    • Intel macOS release tarballs are unaffected, because release-build.yml builds them with cargo, not Nix.
    • Approved by the maintainer. (Keeping Intel-Mac Nix support would have needed a second nixpkgs input pinned to nixpkgs-26.05-darwin.) No CI job runs Nix on macOS, and no doc promises Nix on Intel Macs.
  • tlaplusToolbox is only added where nixpkgs supports it (x86_64-linux). It was listed unconditionally, so nix develop failed to evaluate on aarch64-linux and aarch64-darwin, on main as well.
    • With this change, every package, dev shell and check evaluates on all three remaining systems.
    • nix flake check --no-build --all-systems exits 0.

Cargo

  • Dependabot bumps:
  • Full cargo update: 166 updated, 22 added, 21 removed. The resolution stays MSRV-aware ("latest Rust 1.96 compatible versions").
    • Includes rustls 0.23.40 → 0.23.45, which clears RUSTSEC-2026-0285, the advisory that had Cargo Deny / quality red on main and every PR.
    • The only versions left behind are transitive majors (getrandom 0.4 and similar).
  • Nested lockfiles: all 8 refreshed. These are the four fuzz crates, two sample_stub fixtures and two examples/wasm-*; nothing else refreshes them.
  • deny.toml: stale entries removed, and cargo deny check now runs with zero warnings.
    • The RUSTSEC-2026-0247 ignore for bitmaps: the crate left the tree with imbl-sized-chunks 0.2, which is exactly the entry's own "re-audit when…" condition.
    • The equator, equator-macro and rand skips, which cargo-deny reports as unnecessary with and without --all-features.
    • The GPL-3.0-or-later allowance, which matched no crate in the metadata.
  • supply-chain/: regenerated with cargo vet regenerate exemptions, the same command cargo-vet-auto runs.
  • cargo-vet trust entries are in a follow-up PR.
    • Why they are missing. This refresh drops fully audited crates from 334 to 302, because the new ICU4X 2.3.x and portable-atomic 1.15.0 releases come from publishers the existing trust entries do not name. They were added here in d00fa77b28, but Cargo Vet Auto regenerates from main's supply-chain/ (it only fetches this PR's Cargo files), so it re-added the exemptions and pruned the publisher rows.
    • Why not on this PR. The bot reruns on every maintainer push, so the entries cannot survive here.
    • Where they land. They follow in a PR that does not touch Cargo.lock, together with a fix so the bot regenerates from the PR's own supply-chain/.
  • Dependency Review now allows BSL-1.0. The error-code 3.3.2 → 3.4.0 bump failed that check with "incompatible license: BSL-1.0".
    • The license did not change. error-code has been BSL-1.0 since at least 3.2.0 and already ships in the Windows binary (error-code ← clipboard-win ← rustyline).
    • Nothing had checked it before. Dependency Review only inspects dependencies whose version changes, and cargo-deny's [graph] targets exclude Windows.
    • BSL-1.0 (Boost Software License) is permissive, OSI-approved and GPL-compatible. The workflow's License Policy already allows licenses like that, so it is now listed explicitly with a policy line. Approved by the maintainer.

GitHub Actions

  • anomalyco/opencode/github 1.18.29 → 2.0.0 (chore(ci): bump anomalyco/opencode/github from 1.18.29 to 2.0.0 #2318).
    • github/action.yml is byte-identical between the tags, and our workflow passes only model and prompt.
    • The action installs releases/latest at run time, so the CLI our runs use does not change.
    • v2.0.0 is a verified upstream tag on the beta line.
  • codecov/codecov-action v7.0.0 → v7.1.0 (a release-only change).
  • taiki-e/install-action v2.79.0 → v2.87.12. Its only deprecations are mdbook-alerts and iai-callgrind-runner, neither of which we install.
  • github/codeql-action: the pin already pointed at v4.38.0, the newest release, but its comment said v4.37.7. The comment is corrected.

npm

Not changed

  • MSRV (1.96).
  • containers/compat python:3.12-slim: it is the beancount compatibility oracle, and moving its interpreter is its own change.

Verification

Unless noted, everything ran on Rust 1.98.1.

Rust

  • cargo clippy --workspace --all-features --all-targets -- -D warnings: clean after the manual_midpoint fix.
  • RUSTDOCFLAGS=-D warnings cargo doc --all-features --no-deps: clean.
  • cargo nextest run --all-features (CI's command): 4641 passed, 3 skipped. The skips are existing #[ignore] tests.
  • cargo fmt --all -- --check: clean.
  • MSRV: cargo +1.96.0 check --workspace --all-features: clean.
  • cargo test --doc --all-features: 23 passed, 24 ignored.
  • cargo test -p rustledger-lsp: 344 passed.
  • cargo build -p rustledger-ffi-component --target wasm32-wasip2: builds a fresh component.
  • cargo test -p rustledger-ffi-component-tests (component parity): 29 passed, with 0 skip: component wasm not built markers. It ran against the freshly built component.
  • Bindings freshness (RUSTLEDGER_TS_CHECK=1 scripts/regen-bindings.sh): 148 passed, and regeneration left no changed files. (The stray-file filter was checked against a fake path first, so that empty result is real.)

Nested projects

  • All 4 fuzz crates: cargo +nightly check --locked clean.
  • All 5 examples/*: cargo test passes. The two with lockfiles ran with --locked.

Supply chain

  • cargo deny check: advisories ok, bans ok, licenses ok, sources ok, zero warnings.
  • cargo vet --locked: passes, with 302 fully audited, 3 partially audited and 246 exempted. The trust entries in the follow-up PR bring this to 320 audited and 228 exempted.

VS Code extension

  • In the dev shell: npm ci, npm run package, and npm test (8/8) all pass. npm audit reports 0.
  • nix build .#vscode-extension passes with the new npmDepsHash. I rebuilt it after the flake systems change as well.

Nix

  • Every package, dev shell and check evaluates on x86_64-linux, aarch64-linux and aarch64-darwin.
  • nix flake check --no-build --all-systems exits 0.
  • nix build .#rustledger (the flake's default package, built with crane) succeeds. It produces rledger and rledger-lsp, and rledger --version prints 0.24.0.

Hooks

  • Commit hooks (prek): rustfmt, typos, gitleaks, nil and commitizen pass.
  • Pre-push hooks pass: cargo check --workspace --all-features --all-targets, the forbid-unsafe invariant, plugin-test-quality, and the bean-price compat tests.

Closes #2309, closes #2316, closes #2317, closes #2318.

🤖 Generated with Claude Code

https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr

Toolchain: every `pinned stable` CI pin and rust-toolchain.toml move from
1.97.0 to 1.98.1 in lockstep, and the Dockerfile builder image moves to
rust:1.98.1-alpine. MSRV stays 1.96. Fixes the one new lint,
clippy::manual_midpoint in the Brent solver. f64::midpoint is bit-identical
to 0.5 * (a + b) for finite, non-overflowing inputs.

Nix: all flake inputs are updated, which moves the dev shell's rustc from 1.96.0 to 1.98.1
(it now matches CI). x86_64-darwin is dropped from `systems` because
Nixpkgs 26.11 removed the platform and every output failed to evaluate;
Intel macOS release binaries are built by cargo and are unaffected.
tlaplusToolbox is added only where nixpkgs supports it, so `nix develop`
evaluates on aarch64 again. Also stdenv.isDarwin -> hostPlatform.isDarwin
and the vscode npmDepsHash.

Cargo: dirs 7 and wit-bindgen 0.62 (dependabot), then a full MSRV-aware
`cargo update`. That brings rustls to 0.23.45 and clears RUSTSEC-2026-0285. All 8
nested lockfiles are refreshed. Stale deny.toml entries are removed, and
supply-chain/ is regenerated.

npm (packages/vscode): @types/node 26.5.1, @vscode/vsce 4.0.0, and
npm audit fixes for js-yaml (GHSA-2883-xcg3-v3hh) and qs.

Actions: anomalyco/opencode/github 2.0.0 (dependabot). The bun pin in
docs-validate is raised to 1.4.2 to match the website's deploy.

Includes dependabot #2309, #2316, #2317, #2318.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
@robcohen
robcohen requested a review from a team as a code owner September 14, 2026 21:09
Copilot AI lite review requested due to automatic review settings September 14, 2026 21:09
Dependency Review failed on this PR's `error-code` 3.3.2 -> 3.4.0 bump
("incompatible license: BSL-1.0"). The license did not change: error-code
has been BSL-1.0 since at least 3.2.0 and already ships in the Windows
binary via clipboard-win <- rustyline. The action only inspects
dependencies whose version changes, and cargo-deny's graph targets exclude
Windows, so no check had looked at it until now.

BSL-1.0 (Boost Software License) is permissive, OSI-approved and
GPL-compatible, which the workflow's License Policy already allows. List it
explicitly, with a policy line explaining where it comes from.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

Shape rustledger beancount Speedup RSS (rledger / beancount)
simple 38.7ms ± 5.1ms 561.0ms ± 3.4ms 14.5x 55.2 MB / 50.1 MB
investment 55.4ms ± 4.4ms 2147.0ms ± 1.3ms 38.7x 59.2 MB / 58.0 MB
fifo 52.2ms ± 2.3ms 12195.0ms ± 31.5ms 233.7x 61.1 MB / 57.8 MB

vs base, measured in this run

Shape base this PR Change RSS base → PR
simple 37.5ms ± 3.3ms 38.7ms ± 5.1ms +3.1% ✅ within noise 55.0 MB → 55.2 MB (+0.4%)
investment 53.9ms ± 2.2ms 55.4ms ± 4.4ms +2.7% ✅ within noise 59.1 MB → 59.2 MB (+0.3%)
fifo 51.4ms ± 0.6ms 52.2ms ± 2.3ms +1.6% ✅ within noise 59.1 MB → 61.1 MB (+3.5%)

A difference counts only when it clears the combined spread of the two measurements, per shape (2σ: simple 2.7ms, investment 2.2ms, fifo 1.1ms), and is at least 5%.
10,000 transactions per shape · 20 runs, 3 warmup · hyperfine

What do these numbers mean?
  • simple — Two-posting transfers, one currency. The historical workload — keep as the floor, not as the benchmark.
  • investment — Cost specs, per-unit prices and lot reductions. Exercises booking and inventory, which simple leaves at 0.3%.
  • fifo — Bare {} reductions against a FIFO account — how FIFO sells are normally written. The other four shapes reach the ordered-selection path twice in 2k transactions between them, so it was effectively unprofiled until it turned out to be quadratic (plan_ordered scans every lot per reduction: FIFO ledgers are quadratic (8.8s at 20k transactions) #2083).
  • vs base: the PR and the base-branch commit it is built on, built and measured in the same job
  • RSS: peak resident set size, a single sample — reported without a verdict because there is no spread to test it against
  • A shape with no beancount column is one bean-check reports errors on; it is timed for rledger only

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Fix the Nix attribute guard and ensure the MSRV job explicitly runs with Rust 1.96.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This PR refreshes the Rust 1.98.1 toolchain, dependency lockfiles, Nix/npm tooling, CI actions, and supply-chain metadata while retaining Rust 1.96 as the MSRV.

Changes:

  • Updates Rust, Docker, Cargo, Nix, npm, and GitHub Actions dependencies.
  • Regenerates lockfiles and cargo-deny/cargo-vet metadata.
  • Fixes the Brent midpoint lint and updates developer tooling.
File summaries
File Summary
supply-chain/config.toml Regenerates cargo-vet exemptions.
rust-toolchain.toml Pins Rust 1.98.1. Moderate (2 votes): the MSRV job’s bare cargo check uses 1.98.1 instead of Rust 1.96.
packages/vscode/package.json Updates VS Code packaging dependencies.
flake.nix Updates Nix systems, tooling, and package gating. Critical (1 vote): pkgs.tlaplusToolbox is evaluated before its availability guard; guard the attribute lookup itself.
flake.lock Refreshes Nix inputs.
examples/wasm-plugin-template/Cargo.lock Refreshes example dependencies.
examples/wasm-importer-csv-example/Cargo.lock Refreshes example dependencies.
Dockerfile Updates the Rust builder image.
deny.toml Removes obsolete dependency policy entries.
crates/rustledger-returns/src/lib.rs Uses f64::midpoint.
crates/rustledger-plugin/tests/fixtures/sample_stub/Cargo.lock Refreshes fixture dependencies.
crates/rustledger-loader/fuzz/Cargo.lock Refreshes fuzz dependencies.
crates/rustledger-importer/tests/fixtures/sample_stub/Cargo.lock Refreshes fixture dependencies.
crates/rustledger-ffi-wasi/fuzz/Cargo.lock Refreshes fuzz dependencies.
crates/rustledger-booking/fuzz/Cargo.lock Refreshes fuzz dependencies.
CLAUDE.md Updates the documented stable toolchain pin.
Cargo.toml Updates direct dependency versions.
.github/workflows/wasm.yml Updates stable Rust pins.
.github/workflows/tla.yml Updates the stable Rust pin.
.github/workflows/tla-escalated.yml Updates the stable Rust pin.
.github/workflows/supply-chain.yml Updates stable Rust and supply-chain workflow settings.
.github/workflows/release-test.yml Updates the stable Rust pin.
.github/workflows/release-publish.yml Updates stable Rust pins.
.github/workflows/release-build.yml Updates stable Rust pins.
.github/workflows/quality.yml Updates stable Rust tooling.
.github/workflows/profile.yml Updates stable Rust pins.
.github/workflows/parser-baselines.yml Updates the stable Rust pin.
.github/workflows/opencode.yml Updates the OpenCode action.
.github/workflows/mutation.yml Updates the stable Rust pin.
.github/workflows/kani.yml Updates the stable Rust pin.
.github/workflows/downstream.yml Updates the stable Rust pin.
.github/workflows/docs-validate.yml Updates the Bun version pin.
.github/workflows/corpus-baseline-drift.yml Updates the stable Rust pin.
.github/workflows/compat.yml Updates stable Rust pins.
.github/workflows/ci.yml Updates stable Rust pins.
.github/workflows/cargo-vet-auto.yml Updates the stable Rust pin.
.github/workflows/bench.yml Updates stable Rust pins.
.github/workflows/bench-pr.yml Updates the stable Rust pin.
Review details
  • Files reviewed: 30/42 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread flake.nix Resolved
Comment thread rust-toolchain.toml Resolved
@codecov

codecov Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 99% (raw 93%, 169 masked)
Full AST Match 100%
Total Files 813
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
    The headline is the EFFECTIVE rate, after pairs where beanquery
    itself is wrong are masked. raw is the same run with nothing
    masked. A widening gap means the registry grew, not that rledger
    changed.
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

The MSRV job installed 1.96 with dtolnay/rust-toolchain and then ran a
bare `cargo check`. rust-toolchain.toml pins the stable channel, and
rustup's file override beats the installed toolchain, so the check ran on
the pinned stable instead. The job log on main says "toolchain '1.97.0' is
currently in use (overridden by rust-toolchain.toml)", and on this branch
it says 1.98.1. The job looked right only because the toolchain action
prints its own `rustc +1.96 --version`.

RUSTUP_TOOLCHAIN outranks the file override. The step now prints
`rustc --version` so the log shows which compiler ran. A local
`RUSTUP_TOOLCHAIN=1.96.0 cargo check --workspace --all-features` passes on
this branch.

Found by Copilot review.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
@robcohen

robcohen commented Sep 15, 2026 •

Copy link
Copy Markdown
Member Author

Deep review: #2321

Verdict: ready to merge. Nothing here blocks it. Finding 1 was a real, long-standing CI bug and is fixed in this PR. Finding 2 is an optional supply-chain follow-up. Findings 3-6 are informational.

Reviewed at b69d340f50. Updated after d00fa77b28: two GitHub Actions are bumped. Finding 2's trust entries were added, then moved to a follow-up PR (see the end of this comment). The maintainer has approved both calls: dropping x86_64-darwin from the flake and allowing BSL-1.0 in Dependency Review.

Findings

  1. The CI MSRV job never checked Rust 1.96. It was broken on main and is fixed in this PR (found by Copilot).

    • quality.yml installed 1.96 and then ran a bare cargo check. rust-toolchain.toml's file override beat the installed toolchain, so main really checked with 1.97.0. The log said "toolchain '1.97.0' is currently in use (overridden by rust-toolchain.toml)".
    • Fixed in b69d340f50 with RUSTUP_TOOLCHAIN: "1.96" on the step. The new log shows rustc 1.96.1 inside that step, and the check now takes 5m56s instead of 14s.
  2. Supply-chain coverage drops. The trust-entry fix is in a follow-up PR. cargo vet: main has 334 fully audited and 211 exempted; this branch has 302 fully audited and 246 exempted. Refreshing imports changes nothing. Of the 31 crates that moved from audited to exempted, two groups are covered by a trust mismatch rather than missing audits:

    • ICU4X family (icu_collections, icu_locale_core, icu_normalizer(_data), icu_properties(_data), icu_provider, litemap, potential_utf, tinystr, writeable, zerotrie, zerovec-derive). Their new versions were published by sffc (crates.io user 128408, ICU4X co-maintainer). audits.toml trusts only Manishearth (1139) for them, and those entries are still valid to 2027-06-29.
    • portable-atomic 1.15.0 was published through crates.io trusted publishing (github:taiki-e/portable-atomic). The trust entry is keyed to taiki-e (33035). The repo already trusts this kind of identity for pin-project-lite and mach2.
    • Added in d00fa77b28, then moved out (maintainer-approved).
      • Trusting sffc for 17 ICU4X crates and github:taiki-e/portable-atomic brought cargo vet to 320 audited / 228 exempted.
      • Cargo Vet Auto (pull_request_target, runs from main) then pushed 0cf7ffc0af. It regenerates from main's supply-chain/ and fetches only the PR's Cargo files, so it re-added the exemptions and pruned the sffc publisher rows from imports.lock. That made cargo vet --locked reject audits.toml as misformatted.
      • The bot reruns on every maintainer push, so audits.toml is restored to main here (302/246, and the bot's regeneration is a no-op).
      • The entries land in a follow-up PR that does not touch Cargo.lock, together with a fix so the bot reads the PR's own supply-chain/.
    • The rest (zlib-rs, rustls-webpki, rand, textwrap, thread_local, …) are new patch versions with no peer audit yet. cargo-vet-auto makes the same trade on every dependabot PR.
  3. Benchmark: investment measured +5.3% slower in CI. It is the only shape flagged; simple is +3.8% and fifo is −0.9%, both within noise. Measured deterministically, and it is noise.

    • Setup. Callgrind instruction counts with mimalloc, BEANCOUNT_DISABLE_LOAD_CACHE=1, and the bench-pr build flags, on the same generated workloads. Three binaries separate the causes: main on 1.97.0; this lockfile on 1.97.0; and this PR on 1.98.1. .comment sections confirm each binary's compiler.
    shape main deps only + Rust 1.98.1 total
    simple 348.4M −0.26% +0.74% +0.48%
    investment 512.5M −0.15% +0.59% +0.45%
    fifo 526.2M −0.15% +0.68% +0.53%
    • Result. The dependency updates are marginally faster. Rust 1.98.1 costs about 0.6% more instructions. The net change is about +0.5%, an order of magnitude below the CI bot's +5.3% wall-clock flag, and local interleaved hyperfine (30 runs) puts investment at −1.1%.
    • A CI rerun confirms it is noise. On attempt 2, the flag moved to a different shape: investment measured −0.6% (within noise), and simple was flagged at +7.7%. Callgrind puts simple at +0.48%.
    • Harness self-check. On the same workload, a cache hit counts 256.6M and cache-off counts 514.7M, so this harness can tell cached from uncached runs, and no stray cache file was written during measurement.
  4. Windows gains 3 duplicate crates (82 → 85).

    • windows-sys 0.59 and 0.60, plus windows-targets 0.53, arrive through wasmtime-wasi 48.0.2 → cap-primitives (fs-set-times, io-extras). Some old duplicates drop out.
    • cargo-deny's [graph] targets exclude Windows, so its bans check cannot see this. The cost is Windows compile time only; LSP (windows-latest) passes.
  5. The root Dockerfile is not built anywhere. release-publish.yml generates its own FROM scratch image from prebuilt binaries. The rust:1.98.1-alpine bump is harmless but unverified.

  6. The rustfava downstream check is red, and was already red. It fails the same 4 tests as fix(extract): command-line flags override the importers.toml entry #2308's head (sum(day), misc, documents, journal), compared on full test IDs. Those are stale rustfava snapshots (Downstream (rustfava) has been red since 2026-09-01 on stale snapshots, so its advisory signal is dead #2302), and the check is not required.

Verified clean

  • Toolchain lockstep. All 39 pinned stable pins and rust-toolchain.toml say 1.98.1. No other 1.97 reference remains, and there are no nested rust-toolchain files. The fuzz and miri jobs use explicit cargo +nightly, so the override trap in finding 1 does not reach them.
  • Supply-chain regeneration only touched exemptions.
    • Every config.toml change is inside an exemptions block, and all new exemptions are safe-to-deploy.
    • No policy or import source changed, and audits.toml is untouched.
  • Dependency changes. Only the two dependabot majors are direct: dirs 7 changes preference_dir on Windows, which we never call, and wit-bindgen 0.62 passes bindings freshness, component parity and the WIT gate. Every other semver-incompatible version is transitive (windows-*, wit-*/wasm-* 0.259).
  • Behavior-sensitive crates move only by patch. jiff 0.2.37, regex-automata, winnow, toml, time, encoding_rs, indexmap.
  • Compatibility unchanged. Check 100%, BQL 99%, AST 100%. Codecov: every modified line is covered.
  • Security. Cargo Deny is green, so RUSTSEC-2026-0285 is cleared, and Dependency Review is green.
  • vsce 4. The only invocation is vsce package --no-dependencies -o, and both flags exist in 4.0.0. The Node baseline (22) is met by .nvmrc 24 and nixpkgs 24.20.
  • Nix. No CI job or doc runs Nix on macOS. Every package, dev shell and check evaluates on the three remaining systems, and nix build .#rustledger / .#vscode-extension succeed.
  • CI. Both required checks are green, the 2 Copilot threads are resolved, and the merge state is UNSTABLE, caused only by rustfava.

Suites this PR does not trigger, dispatched on the branch

  • Miri (nightly): all tests pass.
    • rustledger-core: 492 + 8 + 1 tests.
    • rustledger-booking: 164 + 15 tests. Its TLA+ corpus replay is skipped under Miri by design.
  • Kani (packages=all, on the 1.98.1 pin): 13 harnesses verified, 0 failures.
  • TLA+ escalated replay: 8 replay tests pass.
  • Not dispatched: corpus-baseline-drift and profile. They hold issues: write / contents: write, and running them from a branch would act on shared state (issues, the profiling data branch).

Update after d00fa77b28

  • GitHub Actions:
    • codecov/codecov-action v7.0.0 → v7.1.0.
    • taiki-e/install-action v2.79.0 → v2.87.12. Its deprecations cover only mdbook-alerts and iai-callgrind-runner, which we do not use.
    • The github/codeql-action pin already pointed at v4.38.0; only its stale v4.37.7 comment is corrected.
  • Nothing else is left to upgrade:
    • Rust: 1.98.1 is the latest stable.
    • npm: both packages are current. @types/vscode is held at the engines floor on purpose.
    • Nested manifests: none have outdated direct dependencies.
    • Cargo holdbacks: getrandom 0.4 is not in the wasm32 graph. The direct 0.2 and 0.3 deps exist to turn on the wasm feature for ring and imbl/rand_core. minicov 0.3.9 is blocked by wasm-bindgen-test's exact =0.3.8 pin, and generic-array 0.14.9 is blocked by crypto-common 0.1.7's exact =0.14.7 pin (block-buffer only asks for ^0.14).
    • Optional: the compat container is on python:3.12-slim (3.14 exists). It is the beancount oracle, so moving it is its own change.

robcohen and others added 3 commits September 15, 2026 04:17
…er; bump two actions

Supply chain: the dependency refresh dropped cargo-vet's fully audited
count from 334 to 302. Trust entries are keyed to a single publisher, and
the new versions were published by someone else:
- ICU4X 2.3.x (icu_*, litemap, potential_utf, tinystr, writeable,
  zerotrie, zerovec-derive) is published by sffc (crates.io 128408), an
  ICU4X co-maintainer. The existing entries trust Manishearth only.
- portable-atomic 1.15.0 is published via crates.io trusted publishing
  (github:taiki-e/portable-atomic). The existing entry trusts the
  taiki-e user.
Trust those identities, at safe-to-deploy, and regenerate exemptions:
302 -> 320 fully audited, 246 -> 228 exempted, 18 exemptions removed.

Actions: codecov/codecov-action v7.0.0 -> v7.1.0 and
taiki-e/install-action v2.79.0 -> v2.87.12. The codeql-action pin
already pointed at v4.38.0, but its comment said v4.37.7; the comment
is corrected.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
d00fa77 added trust entries for sffc (ICU4X) and
github:taiki-e/portable-atomic. Cargo Vet Auto then pushed 0cf7ffc.
That workflow runs from main (pull_request_target), checks out main's
supply-chain/, and fetches only this PR's Cargo files, so it cannot see
trust entries added on the branch. It re-added the 18 exemptions and
pruned the sffc publisher rows from imports.lock, while leaving
audits.toml alone. Without those publisher rows, `cargo vet --locked`
rejects audits.toml as misformatted: the `# Shane F. Carr (sffc)` name
comments no longer match. The workflow reruns on every maintainer push,
so the entries cannot survive on this PR.

Restore audits.toml to main's version. The store now matches the bot's
output exactly (`cargo vet regenerate exemptions` is a no-op), so the bot
skips and `cargo vet --locked` passes at 302 fully audited / 246
exempted. The trust entries, and a fix so Cargo Vet Auto regenerates from
the PR's own supply-chain/, follow in a separate PR that does not touch
Cargo.lock and so does not trigger the bot.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
@robcohen
robcohen merged commit 2b8b227 into main Sep 15, 2026
71 of 72 checks passed
@robcohen
robcohen deleted the chore/deps-refresh-rust-1.98 branch September 15, 2026 04:44
robcohen added a commit that referenced this pull request Sep 15, 2026
…er; regenerate from the PR's store (#2323)

* chore(supply-chain): trust ICU4X's sffc and portable-atomic's publisher; regenerate from the PR's store

Coverage: #2321's dependency refresh dropped cargo-vet's fully audited
count from 334 to 302. Trust entries are keyed to one publisher, and the
new versions came from another:
- ICU4X 2.3.x (icu_*, litemap, potential_utf, tinystr, writeable,
  zerotrie, zerovec-derive) is published by sffc (crates.io 128408), an
  ICU4X co-maintainer. The existing entries trust Manishearth only.
- portable-atomic 1.15.0 is published through crates.io trusted
  publishing (github:taiki-e/portable-atomic). The existing entry trusts
  the taiki-e user.
Trust those identities at safe-to-deploy and regenerate exemptions. The
result is 302 -> 320 fully audited and 246 -> 228 exempted, with 18
exemptions removed.

Cargo Vet Auto: these entries were first added on #2321 and could not
stay there. The workflow (pull_request_target) checks out main's
supply-chain/ and fetches only the PR's Cargo files, so it re-added the
exemptions and pruned the publisher rows the trust entries depend on.
`cargo vet --locked` then rejected audits.toml as misformatted, and the
job reruns on every maintainer push. Fetch the PR's audits.toml,
config.toml and imports.lock before regenerating, so a PR keeps its own
supply-chain changes. These files are data that cargo-vet parses, and the
job stays gated to dependabot and OWNER/MEMBER authors, who can already
write supply-chain/ directly. This PR does not touch Cargo.lock, so the
bot does not run on it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr

* ci(cargo-vet-auto): skip fork PRs and runs whose branch moved

Two issues Copilot raised on the store fetch added in the previous commit.

Stale head: the store and Cargo.lock are fetched at the event's
PR_SHA, but the commit step writes the staged files onto whatever the
branch points to when it runs. A push during the run would get its
supply-chain/ replaced with data from the older commit. Fetching the
store makes that worse: a PR's own audits.toml and imports.lock are now
among the files written. The Cargo.lock race existed before this. Skip
the commit when the branch head is no longer PR_SHA. The newer push
starts its own run.

Forks: every fetch reads repos/$REPO/contents at PR_SHA and the commit
updates repos/$REPO/git/refs/heads/$BRANCH, so a maintainer's fork PR
could never complete. That was already true before the store fetch. Gate
the job on the head repo being this repo, so it skips cleanly instead of
failing partway.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
robcohen added a commit to puncsky/rustledger that referenced this pull request Sep 15, 2026
Brings in the rustls 0.23.45 update from rustledger#2321, which clears the
RUSTSEC-2026-0285 advisory that was failing Cargo Deny on this branch.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
robcohen added a commit that referenced this pull request Sep 20, 2026
…rust (#2357)

* ci(vet): pin cargo-vet to 0.10.2, the version that parses publisher trust

`Update Exemptions` has failed on every Cargo.lock PR since #2323:

    ERROR × Failed to parse toml file
      ╰─▶ missing field `user-id` for key `trusted.mach2`

My first diagnosis was that no released cargo-vet understands the
`trusted-publisher` key those entries use, and that they should be rewritten as
`user-id` entries. Both halves were wrong, and testing locally is what showed
it.

cargo-vet 0.10.2 parses the store and vets it: "Vetting Succeeded (320 fully
audited, 3 partially audited, 228 exempted)". It also suggests `cargo vet trust
<crate> github:owner/repo` on its own. So the entries are valid.

They are also the only form that works here. Every version we depend on --
mach2 0.6.0, pin-project-lite 0.2.17, portable-atomic 1.15.0 -- was published
through trusted publishing, with NO publishing user; earlier versions of all
three came from a user. A `user-id` entry would therefore match nothing and
silently grant none of the trust it appears to, which is the failure #2321 was
about. Rewriting them, as I had started to do, would have quietly turned three
trusted crates into exemptions.

The defect is the version CI installs. `taiki-e/install-action` with an
unversioned `tool: cargo-vet` takes the newest GitHub RELEASE -- v0.10.0, from
2024-10-03 -- which predates the feature. Its manifest offers no 0.10.2 (checked:
it lists 0.10 and 0.10.0), and there is no 0.10.2 GitHub release for its
binstall fallback either, so the pin has to go through crates.io:

    cargo install cargo-vet --version 0.10.2 --locked

Pinned in supply-chain.yml as well. That job was resolving its own version from
crates.io, so the two could disagree about whether this store parses; now they
cannot.

Verified locally, with the exact commands CI runs: the install succeeds and
yields 0.10.2, `cargo vet regenerate exemptions` exits 0, and `cargo vet
--locked` succeeds.

Two things found while verifying:

`cargo vet check` -- what a contributor runs, without `--locked` -- fails on
main for a missing `audit-as-crates-io` entry on rustledger-budget,
rustledger-ops and rustledger-returns, three first-party crates absent from a
list of fourteen. CI's invocation does not reach that check, which is why it
went unnoticed. Added, and `check` now succeeds.

`regenerate exemptions` prunes one stale exemption (rustls-webpki 0.103.15).
That is the fixed automation's own output, so it ships here rather than waiting
for the next dependency PR.

The job is path-gated on Cargo.lock, so it will not run on this PR; the
evidence is the local runs above, and re-running it on #2354 after this merges.

Closes #2355

* fix(vet): keep the rustls-webpki exemption; its pruning needed imports.lock

My own change broke the `Cargo Vet` job on this PR:

    Vetting Failed!
      rustls-webpki:0.103.15 missing ["safe-to-deploy"]

I had kept half of one output. `cargo vet regenerate exemptions` pruned that
exemption AND updated imports.lock, which is what made it prunable: the audit
covering the crate came from a freshly fetched import. I reverted imports.lock
to keep this PR focused on the version pin and kept the pruning, so the store
claimed an exemption was unnecessary while the audit that replaced it was no
longer there.

It passed locally because my tree still held the fetched imports at that moment.
CI runs `cargo vet --locked`, which forbids fetching them, so the crate came out
unvetted. Verified the fix with `--locked` this time, the flag CI actually uses,
rather than the bare command.

The exemption is back, so this PR now touches only the version pin and the three
missing `audit-as-crates-io` entries; exemptions are byte-identical to main. The
automation can prune it on the next dependency PR, when it updates imports.lock
in the same commit -- which is the point of that job, and it works again once
this merges.
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.

2 participants