Currently the only way to find the rustc version is to invoke rustc. Which is for instance what the rustc_version crate does. It would be great if RUSTC_VERSION or something similar was set automatically so that build scripts could customize what happens based on the version of Rust it compiles with.
See also #4408
Currently the only way to find the rustc version is to invoke rustc. Which is for instance what the
rustc_versioncrate does. It would be great ifRUSTC_VERSIONor something similar was set automatically so that build scripts could customize what happens based on the version of Rust it compiles with.See also #4408