update-rust-toolchain

Update pinned Rust nightly hashes and versions in toolchains/BUCK.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/rsJames-ttrpg/kerrigan --skill update-rust-toolchain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-rust-toolchain
Source: https://github.com/rsJames-ttrpg/kerrigan/tree/main/.claude/skills/update-rust-toolchain
Command: npx skills add https://github.com/rsJames-ttrpg/kerrigan --skill update-rust-toolchain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates updating the pinned Rust nightly in the hermetic Buck2 toolchain, ensuring the correct hashes are used and the toolchain configuration stays consistent after a user request to upgrade.

Core Features & Use Cases

  • Fetch new nightly hashes for all Rust components (rustc, rust-std, clippy) across targets, validate their availability, and prepare toolchains/BUCK for update.
  • Update the RUST_NIGHTLY date and corresponding sha256 entries in toolchains/BUCK, and extract the new version string for documentation.
  • Verify the updated toolchain by performing a build check and report old vs new versions to the user.

Quick Start

Update the pinned Rust nightly in toolchains/BUCK to a new date and verify the toolchain builds.

Frequently Asked Questions about update-rust-toolchain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update the pinned Rust nightly toolchain in a hermetic Buck2 build system?

You can update the pinned Rust nightly by fetching yesterday's date by default or a user-provided date, retrieving new hashes for rustc, rust-std, and clippy, and updating the sha256 entries and version comments in toolchains/BUCK.

What is the process for validating Rust nightly hashes for a Buck2 toolchain configuration?

Validating Rust nightly hashes involves retrieving the sha256 values for all components across targets, confirming their availability, updating the toolchains/BUCK file, and performing a build check to verify the toolchain's consistency.

Can I specify a custom date when upgrading the Rust nightly version in Buck2?

Yes, you can specify a custom date when upgrading the Rust nightly version in Buck2. If no date is provided, the update defaults to yesterday's date to fetch the corresponding component hashes and update the configuration.

Does the Rust nightly toolchain update process check if the build still works after changing hashes?

Yes, the Rust nightly toolchain update process obtains the new version string, performs a build check to confirm a successful build, and reports the before and after versions to the user to ensure the updated configuration works.

What components are covered when fetching new nightly hashes for the Rust toolchain?

When fetching new nightly hashes for the Rust toolchain, the process covers retrieving and validating sha256 values for rustc, rust-std, and clippy across targets before preparing the toolchains/BUCK file for update.