7 releases
Uses old Rust 2015
0.3.0 | Oct 25, 2023 |
---|---|
0.2.1 | Oct 27, 2021 |
0.2.0 | Jul 12, 2020 |
0.1.5 | Oct 19, 2018 |
0.1.0 | Aug 24, 2015 |
#28 in Programming languages
168,982 downloads per month
Used in 219 crates
(23 directly)
7KB
100 lines
rustc-version-runtime-rs
Simple library for getting the version information of a rustc
compiler in runtime.
The goal of this crate is to provide debug information to developers, not to branch application logic based on compiler version. Please, don't do that.
Getting Started
rustc-version-runtime-rs is available on crates.io. Add the following dependency to your Cargo manifest:
[dependencies]
rustc_version_runtime = "0.1.*"
Example
extern crate rustc_version_runtime;
use rustc_version_runtime::version;
println!("This was compiled using {:?}", version());
lib.rs
:
Simple library for getting the version information of a rustc
compiler in runtime.
The goal of this crate is to provide debug information to developers, not to branch application logic based on compiler version. Please, don't do that.
Example
extern crate rustc_version_runtime;
println!("This was compiled using {:?}", rustc_version_runtime::version());
Dependencies
~90KB