Expand description
§cargo-toolchain
cargo-toolchain is a utility to get the currently active and default
rustup toolchains.
It requires that rustup is installed.
§Usage as a CLI
cargo install cargo-toolchain
cargo toolchain # prints the currently active cargo toolchain, e.g. 'stable'
cargo toolchain -d # prints the default toolchain for the directory
cargo toolchain -h # print help messageFunctions§
- get_
active_ toolchain - Get the profile that was used to call the current executable.
- get_
directory_ toolchain - Get the default rustup toolchain for the current directory.
- get_
toolchain - Wrapper around
get_active_toolchainandget_directory_toolchain - truncate_
toolchain - Truncate the triple from a toolchain name if it’s one of the defaults.