# dtolnay/rust-toolchain

Concise GitHub Action for installing a Rust toolchain

Repository: https://github.com/dtolnay/rust-toolchain
Canonical: https://ross.abutalabs.com/products/rust-toolchain
Language: Shell
License: MIT
License Family: permissive
Last push: 2026-08-15T16:50:28+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 8, longevity 100
- inputs: {"age_days": 2314, "days_push": 18, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1569, forks 92 (observed 2026-08-28T04:05:05.276214+00:00)

## What it is
A concise GitHub Action that installs a Rust toolchain via rustup with one-line usage and sensible defaults. The toolchain version is selected by the action's @rev (e.g. @stable, @nightly, @1.89.0), with optional inputs for additional targets and components like clippy and rustfmt.

## Use cases
- install rust toolchain in a github actions workflow
- set up rust ci to run cargo test on push and pull requests
- install nightly rust compiler in ci
- pin a specific rust version like 1.89.0 for builds
- add clippy and rustfmt components in ci
- install wasm32 target for cross-compilation in ci
- get a cache key based on the installed rustc version

## When to choose
- You use GitHub Actions and want minimal, one-line Rust setup
- You need to test against stable, nightly, dated nightly, or pinned Rust versions
- You want extra targets (e.g. wasm32) or components (clippy, rustfmt) installed in the same step
- You need a compiler-version-derived cache key or toolchain name as step outputs

## When to avoid
- Your CI runs outside GitHub Actions, such as GitLab CI or CircleCI
- You need to manage rustup toolchains on a local development machine rather than in CI
- You require complex multi-toolchain orchestration beyond what a single install step provides

## Facets
- artifact type: plugin
- maturity: stable
- function: ci-cd, developer-tools
- domain: developer-tools, version-control
- platform: windows, cli
- tags: github-action, rustup, rust, toolchain, github-actions, workflow-step, continuous-integration, devops, linux, macos

## Member repositories
- dtolnay/rust-toolchain (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:05.276214+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:58:52.544350+00:00, confidence not recorded.
  - readme: https://github.com/dtolnay/rust-toolchain (fetched 2026-08-28T04:05:05.276214+00:00, sha 110fb8268361)
- Data as of 2026-08-30T08:39:29.467469+00:00.
