Skip to content

chore(toolchain): update to 1.97.0 - #13764

Merged
zkochan merged 1 commit into
mainfrom
chore/rust-toolchain-1.97
Aug 10, 2026
Merged

zkochan merged 1 commit into
mainfrom
chore/rust-toolchain-1.97

Conversation

@zkochan

@zkochan zkochan commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Bumps the pinned Rust toolchain from 1.95.0 to 1.97.0 (current stable, released 2026-07-07).

This unblocks the dependabot bump of yamlpatch (#13704): the zizmor-family crates (yamlpatch, yamlpath, subfeature, tree-sitter-iter) raised their MSRV to rustc 1.97 in their 1.28.0 releases, and yamlpatch has no 1.27.0, so no version newer than the currently locked 1.26.1 can compile on 1.95.

The bump was verified locally under 1.97.0 before opening this PR:

  • cargo clippy --locked --workspace --all-targets -- -D warnings (on top of the workspace pedantic + nursery levels): clean, zero new lints.
  • cargo fmt --all -- --check: clean.
  • RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --workspace --document-private-items (with target/doc removed first): clean.

rust-toolchain.toml is the single source of truth for CI, release builds, and local builds; no crate declares a rust-version, and the dylint/perfectionist gate runs on its own pinned nightly, so this is a one-line change. Expect the first CI run to be slower due to cold toolchain-keyed caches.

Squash Commit Body

The zizmor-family crates (yamlpatch, yamlpath, subfeature,
tree-sitter-iter) require rustc 1.97 starting with their 1.28.0
releases, which blocks the yamlpatch dependabot bump
(pnpm/pnpm#13704); yamlpatch has no 1.27.0, so 1.26.1 is the newest
version compatible with 1.95. Clippy (pedantic + nursery,
-D warnings), rustfmt, and the rustdoc gate were verified clean
under 1.97.0 before the bump.

Checklist

  • I checked the referenced issue and verified that none of the PRs
    already linked to it solves it.
  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting.
    (Toolchain-only change; nothing to port.)
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. (Not needed: no user-visible change to any published package.)

Written by an agent (Claude Code, claude-fable-5).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Chores
    • Updated the Rust toolchain to version 1.97.0.
    • Retained the existing default toolchain profile.

The zizmor-family crates (yamlpatch, yamlpath, subfeature,
tree-sitter-iter) require rustc 1.97 starting with their 1.28.0
releases, which blocks dependabot bump #13704. Clippy
(pedantic + nursery, -D warnings), rustfmt, and the rustdoc gate
were verified clean under 1.97.0 before the bump.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 10, 2026 13:04

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 35f2c7ce-2980-4a7b-b11e-f5dc5dfc9167

📥 Commits

Reviewing files that changed from the base of the PR and between 664edd5 and 9aa938a.

📒 Files selected for processing (1)
  • rust-toolchain.toml

📝 Walkthrough

Walkthrough

The Rust toolchain channel updates from 1.95.0 to 1.97.0. The default profile remains unchanged.

Changes

Rust toolchain configuration

Layer / File(s) Summary
Update Rust toolchain channel
rust-toolchain.toml
The configured Rust toolchain channel changes from 1.95.0 to 1.97.0. The default profile remains unchanged.

Estimated code review effort: 1 (Trivial) | ~2 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/rust-toolchain-1.97

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Bump pinned Rust toolchain to 1.97.0

⚙️ Configuration changes 🕐 Less than 10 minutes

Grey Divider

AI Description

• Update pinned Rust toolchain from 1.95.0 to 1.97.0
• Unblock dependency updates requiring MSRV rustc 1.97 (e.g., yamlpatch family)
• Keep CI/local builds aligned via rust-toolchain.toml single source of truth
High-Level Assessment

The following are alternative approaches to this PR:

1. Keep toolchain at 1.95 and pin dependent crates
  • ➕ Avoids raising the required Rust toolchain immediately
  • ➖ Blocks desired dependency upgrades (e.g., yamlpatch >=1.28)
  • ➖ Increases maintenance burden via extra version constraints and future conflicts
2. Declare MSRV via workspace `rust-version` (Cargo.toml)
  • ➕ Makes MSRV explicit to downstream consumers and tooling
  • ➕ Allows cargo to enforce MSRV constraints earlier
  • ➖ Still requires updating CI/toolchain pins to actually build with newer rustc
  • ➖ Introduces another place to maintain version policy if rust-toolchain.toml remains authoritative
3. Test multiple toolchains in CI (MSRV + stable)
  • ➕ Early detection of MSRV regressions while allowing newer stable adoption
  • ➖ More CI time/cost and more complex caching
  • ➖ Not necessary for a straightforward “raise MSRV to unblock deps” change

Recommendation: The current approach (bumping the pinned toolchain) is the most direct and lowest-maintenance way to unblock crates that raised MSRV. Consider additionally adding a workspace rust-version later if you want MSRV to be enforced/communicated in Cargo metadata, but it’s not required to achieve the goal of this PR.

Files changed (1) +1 / -1

Other (1) +1 / -1
rust-toolchain.tomlPin Rust toolchain to 1.97.0 +1/-1

Pin Rust toolchain to 1.97.0

• Updates the workspace Rust toolchain channel from 1.95.0 to 1.97.0 so CI and local builds use the newer stable compiler required by newer dependencies.

rust-toolchain.toml

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Aug 10, 2026
@greptile-apps

greptile-apps Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge with no actionable defects identified.

The valid shared toolchain pin is updated consistently, no conflicting repository pin or compatibility constraint was found, and the stated compiler, formatter, linter, and documentation checks passed under Rust 1.97.0.

Reviews (1): Last reviewed commit: "chore(toolchain): update to 1.97.0" | Re-trigger Greptile

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can reply 'qodo' on any finding to push back, ask questions, or dig deeper

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@github-actions

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.13     14.6±1.50ms    25.6 MB/sec    1.00     13.0±0.39ms    28.9 MB/sec
packument/parse                                  1.00     38.1±0.32µs  1741.2 MB/sec    1.07     40.7±0.45µs  1629.9 MB/sec
tarball/download_dependency                      1.00      2.5±0.10ms  1769.4 KB/sec    1.03      2.5±0.18ms  1716.3 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.00    183.0±5.18ms 87.4 KElem/sec    1.16   212.7±20.53ms 75.2 KElem/sec
workspace_resolution/hoist_heavy                 1.00   278.8±14.05ms        ? ?/sec    1.01   281.8±17.11ms        ? ?/sec

@zkochan
zkochan merged commit f197e7b into main Aug 10, 2026
31 checks passed
@zkochan
zkochan deleted the chore/rust-toolchain-1.97 branch August 10, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants