async-io 2.6.0

Async I/O and timers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    let cfg = match autocfg::AutoCfg::new() {
        Ok(cfg) => cfg,
        Err(e) => {
            println!("cargo:warning=async-io: failed to detect compiler features: {e}");
            return;
        }
    };

    // We use "no_*" instead of "has_*" here. For (non-Cargo) build processes
    // that don't run build.rs, the negated version gives us a recent
    // feature-set by default.
    if !cfg.probe_rustc_version(1, 87) {
        autocfg::emit("async_io_no_pipe");
    }
}