You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if it works with this setup, but it should make the setup process easier.
The setup of Documentation/rust/quick-start.rst includes the following commands:
rustup override set $(scripts/min-tool-version.sh rustc)rustup component add rust-src
The directory override will take priority over that file, so users giving an override (in the root folder) would still be able to use their own toolchain, right? e.g. @nbdd0121 often uses a newer toolchain, IIRC.
I wanted to do this earlier, but then it feels ugly having to name it rust-toolchain.toml and place it in the git root directory. I would probably send the patch long while ago if the file could be named .rust-toolchain.toml.
Would you like to submit the patch @TheAlgorythm or do you prefer somebody else does it?
I can do that, but probably we should wait for rustup to add the support as I can understand, that such file shouldn't clutter the root. If they will change it I can create a PR.
In the meantime I will try if it's possible to place the file in another directory than the root.
For reference, @aliceinwire sent a PR about this before you answered but after I asked you #954. Maybe you could please talk to each other about how to handle this when the time comes to send it upstream :)
Activity
ojeda commentedon Jan 26, 2023
The directory override will take priority over that file, so users giving an override (in the root folder) would still be able to use their own toolchain, right? e.g. @nbdd0121 often uses a newer toolchain, IIRC.
bjorn3 commentedon Jan 26, 2023
Indeed.
rust-toolchain.tomlis the last thing checked before falling back to the global default. Directory overrides happen before that. See https://rust-lang.github.io/rustup/overrides.htmlojeda commentedon Jan 26, 2023
Thanks @bjorn3! I wanted to make sure I read the docs correctly. In that case, I think we can do this.
Would you like to submit the patch @TheAlgorythm or do you prefer somebody else does it (with e.g. a
Suggested-byfrom you)?If you want to send it yourself, please see https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin for details (the kernel requires using the real name and signing your work under the DCO).
I will mark this as a good first issue too.
nbdd0121 commentedon Jan 26, 2023
I wanted to do this earlier, but then it feels ugly having to name it
rust-toolchain.tomland place it in the git root directory. I would probably send the patch long while ago if the file could be named.rust-toolchain.toml.ojeda commentedon Jan 26, 2023
Ah, yeah, if it does not allow to be hidden, that is indeed quite painful. Then we should request that to
rustupfirst.ojeda commentedon Jan 26, 2023
Done! rust-lang/rustup#3182
TheAlgorythm commentedon Jan 27, 2023
I can do that, but probably we should wait for
rustupto add the support as I can understand, that such file shouldn't clutter the root. If they will change it I can create a PR.In the meantime I will try if it's possible to place the file in another directory than the root.
ojeda commentedon Jan 27, 2023
For reference, @aliceinwire sent a PR about this before you answered but after I asked you #954. Maybe you could please talk to each other about how to handle this when the time comes to send it upstream :)
TheAlgorythm commentedon Jan 27, 2023
Ah ok. I haven't seen the PR before. I'm fine with it :)
TheAlgorythm commentedon Feb 12, 2023
I've created a PR at rustup. But is this the normal procedure?
ojeda commentedon Feb 12, 2023
Thanks! Referenced it at #396.
What do you mean?
TheAlgorythm commentedon Feb 12, 2023
Is there a RFC or something else needed? Or is it enough when the maintainers like it.
ojeda commentedon Feb 12, 2023
https://github.com/rust-lang/rustup/blob/master/CONTRIBUTING.md does not seem to refer to it, though I do see a couple mentions of "RFCs" for rustup from a quick search. I guess they will let you know in the PR if that is the case.
ojeda commentedon Sep 1, 2024
The Rust version is not pinned anymore, so I think at this point we don't need this, right?