futures_ringbuf 0.4.0

Mock Type implementing AsyncRead/AsyncWrite for testing and examples.
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" ),
	}
}