[−][src]Crate rustc_simple_version
rustc-simple-version
Access the version of rustc used to build your application as a straightforward constant, no extra build script needed.
use rustc_simple_version::RUSTC_VERSION; println!("Built using {}", RUSTC_VERSION);
The value will be the exact same output as rustc --version
.
Constants
RUSTC_VERSION | rustc version
Should be identical to the output of |