Rustup: Config per project

Created on 8 Jul 2018  路  4Comments  路  Source: rust-lang/rustup

Is there a special config file which will change rustup per project where I'm currently in? Stable <-> nightly.

Similar to .ruby-version which changes the version of ruby when I cd to a project

Most helpful comment

@kinnison I added the comment because this is issue the first result on Google when you search on how to set the toolchain per project.

All 4 comments

There are two ways to specify per-project overrides:

1) https://github.com/rust-lang-nursery/rustup.rs#directory-overrides
2) https://github.com/rust-lang-nursery/rustup.rs#the-toolchain-file

The actual answer to the question is: rustup override set nightly

The links don鈥檛 point to the specific documentation anymore.

If you're going to add comments to old closed issues, please actually refer to the right thing. The equivalent of the .ruby-version is the rust-toolchain file which is now documented here: https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file

@kinnison I added the comment because this is issue the first result on Google when you search on how to set the toolchain per project.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matthiaskrgr picture matthiaskrgr  路  3Comments

durka picture durka  路  3Comments

Stargateur picture Stargateur  路  3Comments

kornelski picture kornelski  路  3Comments

lilred picture lilred  路  3Comments