Skip to content

chore(deps): update Cargo dependencies within semver range#292

Merged
send merged 3 commits into
mainfrom
claude/deps-refresh-2026-07-01
Jul 9, 2026
Merged

chore(deps): update Cargo dependencies within semver range#292
send merged 3 commits into
mainfrom
claude/deps-refresh-2026-07-01

Conversation

@send

@send send commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

Routine in-range cargo update of engine/ dependencies, plus the associated cargo-vet/cargo-deny/quarantine bookkeeping.

Bumped crates (all within their existing semver range, no majors raised):

  • anstream 0.6.21 → 1.0.0
  • anstyle-parse 0.2.7 → 1.0.0
  • bytes 1.11.1 → 1.12.0
  • cc 1.2.55 → 1.2.65
  • clap 4.5.58 → 4.6.1, clap_builder 4.5.58 → 4.6.0, clap_derive 4.5.55 → 4.6.1
  • log 0.4.29 → 0.4.33
  • memmap2 0.9.9 → 0.9.11 (also fixes RUSTSEC-2026-0186 — see below)
  • pulp 0.22.2 → 0.22.3, pulp-wasm-simd-flag 0.1.0 → 0.1.1
  • quote 1.0.44 → 1.0.46
  • rustls 0.23.36 → 0.23.41
  • shlex 1.3.0 → 2.0.1
  • syn 2.0.114 → 2.0.118
  • webpki-roots 1.0.6 → 1.0.8
  • zlib-rs 0.6.2 → 0.6.4
  • getrandom 0.4.3 and r-efi 6.0.0 added as new transitive deps (alongside existing 0.2.x/0.3.x and 5.3.0 lines)

Reverted for the 7-day quarantine gate (scripts/check-quarantine.sh), via cargo update -p <crate> --precise <old>:

  • anyhow 1.0.103 → kept at 1.0.102 (5 days old)
  • crossbeam-epoch 0.9.20 → kept at 0.9.18 (2 days old)

Both reverted versions fix newly-published advisories flagged by cargo deny check:

  • RUSTSEC-2026-0190 (anyhow, unsound Error::downcast_mut()) — lex-core's only anyhow usage (neural feature) never combines .context() with .downcast_mut(), so exposure is low.
  • RUSTSEC-2026-0204 (crossbeam-epoch, invalid pointer deref in fmt::Display) — crossbeam-epoch is a deep transitive dep via rayon; lex-core never formats Atomic/Shared pointers.

Added time-boxed deny.toml ignores for both (same pattern as the pre-existing memmap2 entry), to be dropped once each clears quarantine. The old memmap2/RUSTSEC-2026-0186 ignore was removed since memmap2 0.9.11 (which lands that fix) cleared quarantine and is now in the lockfile.

supply-chain/config.toml cargo-vet exemptions were updated to match the new/reverted versions (log and getrandom@0.4.3/r-efi@6.0.0 got new exemption entries since none existed before; imports.lock refreshed via cargo vet check).

Gates run

  • cargo fmt --all --check — pass
  • cargo clippy --workspace --all-features -- -D warnings — pass
  • cargo test --workspace --all-features — pass, except user_history::tests::test_save_to_invalid_path, which fails only because this sandbox runs as root (mkdir -p under /nonexistent succeeds for root, so the test's "should fail" assumption doesn't hold). Verified this is pre-existing and unrelated to this change — it fails identically on unmodified main in the same sandbox. Not expected to reproduce on the ubuntu-latest CI runners (non-root).
  • cargo vet check — pass (58 fully audited, 1 partially audited, 225 exempted)
  • cargo deny check — pass (advisories/bans/licenses/sources all ok)
  • scripts/check-quarantine.sh — pass for all changed deps (7-day quarantine satisfied)

Not run: mise run accuracy / mise run accuracy-history. Building the test dictionary requires fetching Mozc source data from google/mozc on GitHub, which is outside this session's granted repository scope (send/lexime only) — this is a hard access-scope restriction, not something affected by the dependency bump. None of the bumped crates touch lex-core's dictionary/Viterbi conversion logic (they're CLI/TLS/WASM/proc-macro/logging infra crates). Please run both accuracy suites locally before merging, per the repo's testing policy.

No PR merge is intended from this session — routine opens the PR for human review only.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com


Generated by Claude Code

Bump in-range crates via `cargo update`: anstream, anstyle-parse, bytes,
cc, clap/clap_builder/clap_derive, log, memmap2, pulp,
pulp-wasm-simd-flag, quote, rustls, shlex, syn, webpki-roots, zlib-rs,
and add getrandom 0.4.3 / r-efi 6.0.0 as new transitive deps.

anyhow 1.0.103 and crossbeam-epoch 0.9.20 were reverted after failing
the 7-day quarantine check; both fix newly-published advisories
(RUSTSEC-2026-0190, RUSTSEC-2026-0204) with low practical exposure
here, so deny.toml gains time-boxed ignores instead (mirroring the
existing memmap2 entry, which is now removed since memmap2 0.9.11
cleared quarantine and lands the fix for RUSTSEC-2026-0186).

Updated cargo-vet exemptions in supply-chain/config.toml to match.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5ac5144cb6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread engine/deny.toml Outdated
claude added 2 commits July 9, 2026 16:06
… ignoring advisories

Per Codex review on #292: ignoring RUSTSEC-2026-0190/0204 in deny.toml
kept cargo-deny green while the lockfile stayed on the vulnerable
anyhow/crossbeam-epoch versions, so the gate would never force the
upgrade even after quarantine cleared. Adopt the fixed versions
(anyhow 1.0.103, crossbeam-epoch 0.9.20) now and quarantine-allowlist
them instead, matching how this repo already treats other security
patches that must land immediately.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
crossbeam-epoch 0.9.20 (bumped for RUSTSEC-2026-0204) ships a build.rs
that 0.9.18 didn't have. Verified it only emits a rustc-cfg based on
CARGO_CFG_SANITIZE, the same benign pattern already accepted for
crossbeam-utils — safe to add to the baseline.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@send

send commented Jul 9, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 7a93912b53

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@send send merged commit 00b2e89 into main Jul 9, 2026
33 of 35 checks passed
@send send deleted the claude/deps-refresh-2026-07-01 branch July 9, 2026 16:46
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