Create a directory override for the current folder.

Section: Toolchains

Pin a toolchain in one directory

bash
bash
rustup override set stable
Explanation

Directory overrides let a project use a different toolchain than global default.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Toolchains
Remove a directory override
Stop forcing a local toolchain override.
OpenIn sheetbashsame section
List installed toolchains
Display toolchains available on the machine.
OpenIn sheetbashsame section
Install nightly
Add the nightly toolchain.
OpenIn sheetbashsame section
Install beta
Add the beta channel toolchain.
OpenIn sheetbashsame section
Set nightly as default
Change the global default toolchain.
OpenIn sheetbashsame section
Pin toolchain in version-controlled config
Check in a `rust-toolchain.toml` file.
OpenIn sheettoml1 tag match