compiletest_rs 0.11.1

The compiletest utility from the Rust compiler as a standalone testing harness
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::env;

pub fn main() {
    if env::var("CARGO_FEATURE_RUSTC").is_err() {
        println!(
            "cargo:rustc-env=COMPILETEST_TARGET={}",
            env::var("TARGET").unwrap()
        );
        println!(
            "cargo:rustc-env=COMPILETEST_HOST={}",
            env::var("HOST").unwrap()
        );
    }
}