-
Notifications
You must be signed in to change notification settings - Fork 955
Can rustup be used to create a toolchain with nightly Cargo and stable rustc? #755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't believe so, but I'm not 100% sure. |
(At the same time, every cargo is a nightly cargo, so every toolchain comes with a nightly cargo and stable rustc, so it's also not 100% clear exactly what you want. I'm interpreting it as "a toolchain with a stable rust and an arbitrary cargo that's not the one paired with that stable rust") |
Yup, that's right. Basically I want to try out this feature from Cargo : rust-lang/cargo#3000 , only available in nightly currently, but otherwise use stable Rust. |
That's not possible with rustup, and it's not something that can ever really be supported since cargo is not guaranteed to be compatible with any rustc other than the one it is paired with (although in practice it will probably work with most). If you want, you could try installing both a stable and nightly toolchain, and manually copy across the cargo binary, but it may just break your toolchain. |
@matklad mentioned "However you could use nightly Cargo with stable rustc!" in the PR comments. However, if that's true that using nightly cargo with stable rustc might introduce instabilities of its own, might as well use the entire nightly toolchain. I guess it won't take that long for things to move into beta anyways. 😮 |
Hm, is this really so? I always thought that Cargo can use any |
Let me add two use cases for this feature:
|
If so, how?
The text was updated successfully, but these errors were encountered: