forkable 0.1.0

Fork-able iterators and asynchronous streams.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use rustc::Channel;
use rustc_version as rustc;

fn main() {
    let target_version = rustc::version_meta().expect("failed to get version");

    match target_version.channel {
        Channel::Nightly | Channel::Beta | Channel::Dev => println!("cargo::rustc-cfg=feature=\"nightly\""),
        _ => ()
    }
}