Sourced from actions-rust-lang/setup-rust-toolchain's releases.
v2.0.0
What's Changed
Use
CARGO_BUILD_WARNINGSfor enforcing warning free compilations (#98) This is a new variable supported by cargo 1.97+ and sets thebuild.warningsconfig. It allows removing theRUSTFLAGS="-D warnings"default, which will improve compatibility withtarget.*.rustflagsand.cargo/config.tomlfiles.This adds a new
build-warningsinput to configure the value for thebuild.warningsconfig.Add error matcher for Rust panics This will highlight the location of the panic location during tests.
Reuse output of
rustc --version --verbosecalls (#103 by@ChihweiLHBird)New Contributors
@ChihweiLHBirdmade their first contribution in actions-rust-lang/setup-rust-toolchain#103Full Changelog: https://github.com/actions-rust-lang/setup-rust-toolchain/compare/v1.17.0...v2.0.0
Sourced from actions-rust-lang/setup-rust-toolchain's changelog.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[2.0.0] - 2026-09-07
Use
CARGO_BUILD_WARNINGSfor enforcing warning free compilations (#98) This is a new variable supported by cargo 1.97+ and sets thebuild.warningsconfig. It allows removing theRUSTFLAGS="-D warnings"default, which will improve compatibility withtarget.*.rustflagsand.cargo/config.tomlfiles.This adds a new
build-warningsinput to configure the value for thebuild.warningsconfig.Add error matcher for Rust panics This will highlight the location of the panic location during tests.
Reuse output of
rustc --version --verbosecalls (#103 by@ChihweiLHBird)[1.17.0] - 2026-06-25
- Add new parameter
cache-targetsthat is propagated toSwatinem/rust-cacheascache-targets(#84). This allows disabling caching of the workspacetargetdirectory, e.g. when usingsccache, while keeping the rest of the cache enabled.[1.16.1] - 2026-05-08
- Renamed internally used variable to avoid clashes with globally existing variables. This fixes the interference of the TOOLCHAIN variable as reported in #91.
[1.16.0] - 2026-04-13
- Add new parameter
cache-save-ifthat is propagated toSwatinem/rust-cacheassave-if(#90 by@ChanTsune)[1.15.4] - 2026-03-15
- Bump Swatinem/rust-cache from 2.8.2 to 2.9.1 (#87 by
@hyperfinitism) This gets rid of the warnings about Node.js 20.[1.15.3] - 2026-03-01
- Bump Swatinem/rust-cache from 2.8.1 to 2.8.2
[1.15.2] - 2025-10-04
- Fix: Run the version detection steps in the selected
rust-src-dirdirectory. This should enable the version selection even without a default toolchain installed. Fixes #74.[1.15.1] - 2025-09-23
... (truncated)
ecabd13
Prepare changelog for 2.0.0 releasedc00391
Add error matcher for Rust panics70de7eb
Merge pull request #103
from ChihweiLHBird/reuse-rustc-verbose-outputc420b69
Merge pull request #105
from actions-rust-lang/use-build-warningsd94d10a
Use CARGO_BUILD_WARNINGS for enforcing warning free compilations34430aa
Reuse rustc verbose output instead of invoking rustc three times.0267444
Merge pull request #102
from actions-rust-lang/dependabot/github_actions/Swat...5fa2882
Bump Swatinem/rust-cache from 2.9.1 to 2.9.28439c15
Merge pull request #100
from actions-rust-lang/dependabot/github_actions/acti...c8f944a
Bump actions/checkout from 7.0.0 to 7.0.1