LinuxCommandLibrary

rustup-override

Modify directory toolchain overrides.

TLDR

List directiory toolchain overrides

$ rustup override list
copy


Set the override toolchain for the current directory (i.e. tell rustup to run cargo, rustc, etc. from a specific toolchain when in that directory)
$ rustup override set [toolchain]
copy


Remove the toolchain override for the current directory
$ rustup override unset
copy


Remove all toolchain overrides for directories that no longer exist
$ rustup override unset --nonexistent
copy

Copied to clipboard