Skip to content

Rust

How json2vars-setter handles Rust, and how the example workflow provisions it.

json2vars-setter integration

Item Value
Matrix JSON key versions.rust
Action output versions_rust
Dynamic-update strategy input rust-strategy (stable / latest / both)
Version source see Version Sources

Supported runners

The example matrix runs on Ubuntu / Windows / macOS:

ubuntu-latest, windows-latest, macos-latest

Any GitHub-hosted runner the setup action supports also works - the OS list is just the os array in your matrix JSON.

Supported versions

Example matrix (what the example workflow runs):

{
  "versions": {
    "rust": [
      "1.79.0",
      "1.80.0",
      "1.81.0",
      "1.82.0",
      "1.83.0",
      "1.84.0",
      "1.84.1",
      "1.85.0",
      "stable"
    ]
  }
}

Latest values tracked by the dynamic-update tooling (auto-refreshed from the release APIs into the version cache):

Field Version
stable 1.96.0
latest 1.96.0

Cache last updated: 2026-06-24T12:28:40.583398.

Setup action (example workflow)

rust_test.yml provisions Rust with the matrix value json2vars-setter produced:

1
2
3
4
5
- name: Set up Rust
  uses: dtolnay/rust-toolchain@master
  with:
    toolchain: ${{ matrix.rust-version }}
    components: rustfmt, clippy

References