1 unstable release
0.1.0 | Jun 18, 2020 |
---|
#816 in Programming languages
1,952 downloads per month
Used in gerrit-grr
4KB
rustc-simple-version
The rustc-simple-version
crate provides a simple constant that exposes the
version of rustc
used to compile your project.
use rustc_simple_version::RUSTC_VERSION;
println!("Built using {}", RUSTC_VERSION);
License
rustc-simple-version is (C) 2020 Kunal Mehta, released under the Apache 2.0 or any later version, see LICENSE for details.
lib.rs
:
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
.