#plugin #rustc-version #rustc #version #debugging #compiler-plugin

yanked rustc_info

A compiler plugin which provides several macros for exposing rustc version info into the rust code for debugging purposes

Uses old Rust 2015

0.0.2 Nov 25, 2016
0.0.1 Aug 22, 2016

#18 in #rustc-version

MIT license

4KB
50 lines

rustc-info-rs

Travis-CI Status

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!());

No runtime deps