Function build_data::set_RUSTC_VERSION_SEMVER [−][src]
pub fn set_RUSTC_VERSION_SEMVER()
Sets the RUSTC_VERSION_SEMVER
to the dotted version number of the rustc
used by the current build.
Call this from build.rs
.
Use env!
in your main.rs
to use the variable.
Example value: "1.53.0"
Executes the rustc
command.
Panics
Panics if it fails to get the value from rustc
.