Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install +nightly?

I don't want to use anything but the stable toolchain for my normal work but would like to be able to debug my macros using cargo expand. I don't even now how to use anything but the default stable toolchain.

like image 570
pm100 Avatar asked Nov 26 '25 13:11

pm100


1 Answers

You can install nightly rust with rustup toolchain install nightly, then you can run cargo as nightly with rustup run nightly cargo [...more arguments here] or cargo +nightly [...more arguments here]. If you want your normal cargo command to be replaced with nightly as well then you can run rustup default nightly.

like image 68
Aplet123 Avatar answered Nov 29 '25 01:11

Aplet123



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!