-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
How to get a version of rustc
which is used by cargo
?
#2833
Comments
Ah, I must say that I can't use |
Heh yeah today we have I'd actually be fine I think if we printed out @brson what do you think? |
I agree with the motivation, and can't think of anything smarter to do. Hopefully though we we don't need to do the same for rustdoc. I think |
I've though about it more and came to the conclusion that we probably don't want this feature. As for the original motivation about IntelliJ Rust, we now always explicitly pass ( intellij-rust/intellij-rust#517 ) Knowing which But Cargo almost always just works, so there is no need to provide this functionality. |
Sorry for commenting on an old issue. I see this as an either or; either
or
Case: Several beta testers for https://github.com/mimblewimble/grin/ have Thanks for your time. Workaround ideas very welcome. EDIT: https://github.com/Kimundi/rustc-version-rs is NOT what I was looking for |
@sesam I think the up-to-date discussion is here rust-lang/rfcs#2182 |
Thanks, and sorry, it seems I pasted my comment on the wrong issue. I noticed that RFCs get closed. Your suggested 2182 (closed), 1953 (closed), 1707 (closed). For your own original issue, I guess you could solve that by heuristics, reimplementing the same rustc discovery and selection code that cargo already uses... which probably saves the cargo team a few code lines, and adds more code lines elsewhere. |
Hi!
I'd like to show which version of
rustc
is used bycargo
in IntelliJ GUI. Currently we just invoke/path_configured_by_user/cargo --version
and/path_configured_by_user/rustc --version
, but this may be wrong. For example, [therustc
may not be inPATH
](not in path). Also there isRUSTC
environment variable...What do you think about extending
cargo --version
such that it also prints the version of the compiler, like this:Looks like rustc version is queried anyway:
And maybe
cargo --version
should work even if there is norustc
available?The text was updated successfully, but these errors were encountered: