Stable + nightly compilers


#1

I just wanted to clarify something. I’ve been using rust solely with the stable, which is what I like to use, but there are a couple of crates that require nightly. If I run:

$ rustup install nightly

Does that just give me access to compiler too and doesn’t effect anything else? So say I needed something like clippy. I can just use $ cargo +nightly install clippy and it will use nightly, but stable will remain my default and available to use? I just wanted to check :slight_smile:


#2

That is correct. And if at some point you do accidentally set the default toolchain to nightly, fixing that is just a matter of typing rustup default stable