Skip to main content

rustc_version_build

Macro rustc_version_build 

Source
rustc_version_build!() { /* proc-macro */ }
Expand description

Returns the Rust compiler build version as a &'static str.

ยงExample

const RUSTC_VERSION: semver::Version = compile_time::rustc_version!();
assert_eq!(RUSTC_VERSION.build.as_str(), compile_time::rustc_version_build!());