timeout_io 0.2.7

This library provides a simple timeout-based API for IO-operations
Documentation
extern crate cc;

fn main() {
	// Select the version according to the current platform
	let file = match true {
		_ if cfg!(unix) => "libselect/libselect_unix.c",
		_ if cfg!(windows) => "libselect/libselect_win.c",
		_ => panic!("Unsupported platform for libselect")
	};
	
	// Compile and link library
	cc::Build::new().file(file).compile("select");
	println!("cargo:rustc-link-lib=static=select");
}