wide 0.1.2

A crate to help you go wide.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![allow(unused_imports)]

use std::process::Command;

fn main() {
  if cfg!(not(feature = "always_use_stable")) {
    let output = Command::new("rustc")
      .arg("--version")
      .output()
      .expect("failed to execute `rustc --version`!");
    assert!(output.status.success(), "toolchain detection unsuccessful!");
    let stdout = String::from_utf8_lossy(&output.stdout);
    if stdout.contains("nightly") {
      println!(r#"cargo:rustc-cfg=feature="toolchain_nightly""#);
    }
  }
}