claims 0.6.0

Assertion macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate autocfg;

fn main() {
    let cfg = autocfg::new();
    cfg.emit_path_cfg("core::task::Poll", "has_task_poll");
    cfg.emit_path_cfg("std::task::Poll", "has_task_poll");

    // Needed to enable `#![no_std]` only on rustc versions that support it (rustc 1.6.0 and up).
    cfg.emit_rustc_version(1, 6);

    // Needed for `assert_matches!`' minimum rust version.
    cfg.emit_rustc_version(1, 26);

    if cfg.probe_rustc_version(1, 15) && !cfg.probe_rustc_version(1, 16) {
        autocfg::emit("has_private_in_public_issue");
    }
}