async_io_stream 0.3.3

IntoAsyncRead on steriods
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Detect the rustc channel
//
use rustc_version::{ version_meta, Channel };

fn main()
{
	// Set cfg flags depending on release channel
	//
	match version_meta().unwrap().channel
	{
		Channel::Stable  => println!( "cargo:rustc-cfg=stable"    ),
		Channel::Beta    => println!( "cargo:rustc-cfg=beta"      ),
		Channel::Nightly => println!( "cargo:rustc-cfg=nightly"   ),
		Channel::Dev     => println!( "cargo:rustc-cfg=rustc_dev" ),
	}
}