Skip to content

Migrate from deprecated actions-rs/toolchain to dtolnay/rust-toolchain#5142

Open
captbaritone wants to merge 1 commit intofacebook:mainfrom
captbaritone:upgrade-rust-toolchain-action
Open

Migrate from deprecated actions-rs/toolchain to dtolnay/rust-toolchain#5142
captbaritone wants to merge 1 commit intofacebook:mainfrom
captbaritone:upgrade-rust-toolchain-action

Conversation

@captbaritone
Copy link
Contributor

Summary

The actions-rs/toolchain action has been deprecated since 2020 and shows deprecation warnings in CI:

##[warning]The `set-output` command is deprecated and will be disabled soon.

This PR migrates all workflow files to use the actively maintained dtolnay/rust-toolchain action instead.

Changes:

  • Replace actions-rs/toolchain@v1 with dtolnay/rust-toolchain (pinned to commit SHA)
  • Remove override: true (not needed with dtolnay/rust-toolchain)
  • Change target: to targets: for cross-compilation targets (different API)

Files updated:

  • .github/workflows/ci.yml (4 usages)
  • .github/workflows/update-cargo-lock.yml (1 usage)
  • .github/workflows/docusaurus.yml (1 usage)

Test plan

  • CI passes on this PR (validates the new action works correctly across all platforms)

The actions-rs/toolchain action has been deprecated since 2020 and shows
deprecation warnings about set-output commands. This migrates all
workflows to use the actively maintained dtolnay/rust-toolchain action.

Key changes:
- Replace actions-rs/toolchain@v1 with dtolnay/rust-toolchain (pinned to SHA)
- Remove `override: true` (not needed with dtolnay/rust-toolchain)
- Change `target:` to `targets:` for cross-compilation targets
@meta-cla meta-cla bot added the CLA Signed label Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant