DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (0dc91d87721b)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
extern crate version_check as rustc;

fn main() {
    if rustc::is_min_version("1.5.0").map(|(is_min, _)| is_min).unwrap_or(true) {
        println!("cargo:rustc-cfg=__unicase__iter_cmp");
    }

    if rustc::is_min_version("1.13.0").map(|(is_min, _)| is_min).unwrap_or(true) {
        println!("cargo:rustc-cfg=__unicase__default_hasher");
    }

    if rustc::is_min_version("1.31.0").map(|(is_min, _)| is_min).unwrap_or(true) {
        println!("cargo:rustc-cfg=__unicase__const_fns");
    }
}