moonrepo/Setup Rust and Cargo
Sets up Rust by installing a toolchain/components/targets with rustup, and also Cargo by installing bins and caching core.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| bins | Comma-separated list of global binaries to install into Cargo. | — | — |
| cache | Toggle caching of ~/.cargo/registry and /target/<cache-target> directories. | — | true |
| cache-base | Base branch/ref to save a warmup cache on. Other branches/refs will restore from this base. | — | — |
| cache-target | Name of the target profile to cache. | — | debug |
| cache-extra-identifier | Additional identifier to include in cache key for matrix jobs or custom cache separation. | — | — |
| channel | Toolchain specification/channel to explicitly install. | — | — |
| components | Comma-separated list of additional components to install. | — | — |
| inherit-toolchain | Inherit all toolchain settings from the rust-toolchain.toml file. | — | false |
| targets | Comma-separated list of additional targets to install. | — | — |
| target-dirs | Comma-separated list of target folder paths, relative from the repository root. | — | target |
| profile | Profile to install. Defaults to "minimal". | — | — |
Outputs
| name | description |
|---|---|
| cache-key | The generated cache key used. |
| cache-hit | Indicates an exact match was found for the cache key. |
| rust-version | Version of the installed rustc. |
| rust-hash | Commit hash of the installed rustc. |