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
If we run rustc --version for a directory when the version specified in e.g. rust-toolchain is not installed, rustup automatically downloads the version.
Solution you'd like
It's better to have a way to obtain the Rust version that would be used for current working directory (or any other directory) without obtaining actual binary.
Notes
This would be especially useful for shell extensions that shows the current Rust version. The real-world examples are:
starship, which re-implements the algorithm to resolve the Rust version in order to avoid running anything like rustup or rustc;
tide plugin for fish shell, which has a feature to show the Rust version in the prompt, which triggers inevitable download when cd-ing to a working directory containing rust-toolchain specifying not-currently-installed toolchain
The text was updated successfully, but these errors were encountered:
(After two years) I found the issue about this topic, #1397, and by luck it has been closed just three days ago. So I think I can close the issue, horray!
Problem you are trying to solve
If we run
rustc --version
for a directory when the version specified in e.g.rust-toolchain
is not installed,rustup
automatically downloads the version.Solution you'd like
It's better to have a way to obtain the Rust version that would be used for current working directory (or any other directory) without obtaining actual binary.
Notes
This would be especially useful for shell extensions that shows the current Rust version. The real-world examples are:
rustup
orrustc
;cd
-ing to a working directory containingrust-toolchain
specifying not-currently-installed toolchainThe text was updated successfully, but these errors were encountered: