{"id":13595664,"url":"https://github.com/dtolnay/rust-toolchain","last_synced_at":"2025-05-14T02:04:07.489Z","repository":{"id":37107361,"uuid":"260749683","full_name":"dtolnay/rust-toolchain","owner":"dtolnay","description":"Concise GitHub Action for installing a Rust toolchain","archived":false,"fork":false,"pushed_at":"2025-04-29T19:24:09.000Z","size":309,"stargazers_count":1285,"open_issues_count":1,"forks_count":63,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-11T10:01:54.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dtolnay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"dtolnay"}},"created_at":"2020-05-02T18:28:15.000Z","updated_at":"2025-05-11T08:39:04.000Z","dependencies_parsed_at":"2024-04-14T18:43:46.465Z","dependency_job_id":"d67e970a-a0cb-44d1-9483-95b6e1267c14","html_url":"https://github.com/dtolnay/rust-toolchain","commit_stats":{"total_commits":119,"total_committers":9,"mean_commits":"13.222222222222221","dds":0.07563025210084029,"last_synced_commit":"7b1c307e0dcbda6122208f10795a713336a9b35a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtolnay%2Frust-toolchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtolnay%2Frust-toolchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtolnay%2Frust-toolchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtolnay%2Frust-toolchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dtolnay","download_url":"https://codeload.github.com/dtolnay/rust-toolchain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253798461,"owners_count":21966083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T16:01:55.104Z","updated_at":"2025-05-14T02:04:07.441Z","avatar_url":"https://github.com/dtolnay.png","language":"Shell","funding_links":["https://github.com/sponsors/dtolnay"],"categories":["Shell"],"sub_categories":[],"readme":"# Install Rust Toolchain\n\nThis GitHub Action installs a Rust toolchain using rustup. It is designed for\none-line concise usage and good defaults.\n\n\u003cbr\u003e\n\n## Example workflow\n\n```yaml\nname: test suite\non: [push, pull_request]\n\njobs:\n  test:\n    name: cargo test\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: dtolnay/rust-toolchain@stable\n      - run: cargo test --all-features\n```\n\nThe selection of Rust toolchain is made based on the particular @rev of this\nAction being requested. For example \"dtolnay/rust-toolchain@nightly\" pulls in\nthe nightly Rust toolchain, while \"dtolnay/rust-toolchain@1.42.0\" pulls in\n1.42.0.\n\n\u003cbr\u003e\n\n## Inputs\n\nAll inputs are optional.\n\n\u003ctable\u003e\n\u003ctr\u003e\n  \u003cth\u003eName\u003c/th\u003e\n  \u003cth\u003eDescription\u003c/th\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ccode\u003etoolchain\u003c/code\u003e\u003c/td\u003e\n  \u003ctd\u003e\n    Rustup toolchain specifier e.g. \u003ccode\u003estable\u003c/code\u003e, \u003ccode\u003enightly\u003c/code\u003e, \u003ccode\u003e1.42.0\u003c/code\u003e, \u003ccode\u003enightly-2022-01-01\u003c/code\u003e.\n    \u003cb\u003eImportant: the default is to match the @rev as described above.\u003c/b\u003e\n    When passing an explicit \u003ccode\u003etoolchain\u003c/code\u003e as an input instead of @rev, you'll want to use \"dtolnay/rust-toolchain@master\" as the revision of the action.\n  \u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ccode\u003etargets\u003c/code\u003e\u003c/td\u003e\n  \u003ctd\u003eComma-separated string of additional targets to install e.g. \u003ccode\u003ewasm32-unknown-unknown\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ccode\u003ecomponents\u003c/code\u003e\u003c/td\u003e\n  \u003ctd\u003eComma-separated string of additional components to install e.g. \u003ccode\u003eclippy, rustfmt\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003cbr\u003e\n\n## Outputs\n\n\u003ctable\u003e\n\u003ctr\u003e\n  \u003cth\u003eName\u003c/th\u003e\n  \u003cth\u003eDescription\u003c/th\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ccode\u003ecachekey\u003c/code\u003e\u003c/td\u003e\n  \u003ctd\u003eA short hash of the installed rustc version, appropriate for use as a cache key. \u003ccode\u003e\"20220627a831\"\u003c/code\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n  \u003ctd\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/td\u003e\n  \u003ctd\u003eRustup's name for the selected version of the toolchain, like \u003ccode\u003e\"1.62.0\"\u003c/code\u003e. Suitable for use with \u003ccode\u003ecargo +${{steps.toolchain.outputs.name}}\u003c/code\u003e.\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003cbr\u003e\n\n## Toolchain expressions\n\nThe following forms are available for projects that use a sliding window of\ncompiler support.\n\n```yaml\n     # Installs the most recent stable toolchain as of the specified time\n     # offset, which may be written in years, months, weeks, or days.\n  - uses: dtolnay/rust-toolchain@master\n    with:\n      toolchain: stable 18 months ago\n```\n\n```yaml\n     # Installs the stable toolchain which preceded the most recent one by\n     # the specified number of minor versions.\n  - uses: dtolnay/rust-toolchain@master\n    with:\n      toolchain: stable minus 8 releases\n```\n\n\u003cbr\u003e\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT\nLicense].\n\n[MIT License]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtolnay%2Frust-toolchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdtolnay%2Frust-toolchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtolnay%2Frust-toolchain/lists"}