Uses old Rust 2015
0.0.2 |
|
---|---|
0.0.1 |
|
#18 in #rustc-version
4KB
50 lines
rustc-info-rs
The rustc_info
plugin provides several macros for exposing compiler info into the rust code for debugging purposes.
Examples
#![feature(plugin)]
#![plugin(rustc_info)]
fn main() {
println!("This project was compiled with rustc version: {} ({} {}) for {} target",
rustc_release!(),
rustc_commit_hash!(),
rustc_commit_date!(),
rustc_host!());
}
#License
Licensed under MIT license (LICENSE)
lib.rs
:
The rustc_info
plugin provides several macros for exposing compiler info into the rust code for debugging purposes.
Examples
#![feature(plugin)]
#![plugin(rustc_info)]
println!("This project was compiled with rustc version: {} ({} {}) for {} target", rustc_release!(), rustc_commit_hash!(), rustc_commit_date!(), rustc_host!());