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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
binsComma-separated list of global binaries to install into Cargo.
cacheToggle caching of ~/.cargo/registry and /target/<cache-target> directories.true
cache-baseBase branch/ref to save a warmup cache on. Other branches/refs will restore from this base.
cache-targetName of the target profile to cache.debug
cache-extra-identifierAdditional identifier to include in cache key for matrix jobs or custom cache separation.
channelToolchain specification/channel to explicitly install.
componentsComma-separated list of additional components to install.
inherit-toolchainInherit all toolchain settings from the rust-toolchain.toml file.false
targetsComma-separated list of additional targets to install.
target-dirsComma-separated list of target folder paths, relative from the repository root.target
profileProfile to install. Defaults to "minimal".
namedescription
cache-keyThe generated cache key used.
cache-hitIndicates an exact match was found for the cache key.
rust-versionVersion of the installed rustc.
rust-hashCommit hash of the installed rustc.