Update Rust
Developmentupdate-rustUpdate Rust is an Agent Skill for development published in the Azure/azure-sdk-for-rust repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Update the pinned stable and nightly Rust toolchain versions used by the repository
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Azure/azure-sdk-for-rust/blob/HEAD/.github/skills/update-rust/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/update-rust, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Run eng/scripts/Update-Rust.ps1 to update the pinned Rust toolchain versions.
What the script does
- Fetches the latest stable Rust version from GitHub (if
-Versionnot specified) - Detects a working nightly toolchain date from
rustc --version(if-NightlyVersionnot specified), advancing day-by-day untilrustupcan install it - Updates
rust-toolchain.toml,eng/scripts/Language-Settings.ps1, andeng/scripts/*.rsshebang lines
Parameters
-Version— stable channel version (e.g.,"1.96.0"); omit to auto-detect from GitHub-NightlyVersion— nightly date (e.g.,"2026-05-01"or"nightly-2026-05-01"); omit to auto-detect fromrustc --version
Examples
Update both channels automatically:
eng/scripts/Update-Rust.ps1
Update to a specific stable version with auto-detected nightly:
eng/scripts/Update-Rust.ps1 -Version 1.96.0
Update both channels explicitly:
eng/scripts/Update-Rust.ps1 -Version 1.96.0 -NightlyVersion 2026-05-01