Crate rustc_simple_version

source ·
Expand description

§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 Should be identical to the output of rustc --version.