Function build_data::get_rustc_version [−][src]
pub fn get_rustc_version() -> Result<String, String>
Gets the version of the Rust compiler used to build the build script.
Example: "rustc 1.53.0-nightly (07e0e2ec2 2021-03-24)"
Errors
Returns an error if it fails to execute the rustc
command.