parking_lot_core 0.4.0

An advanced API for creating custom synchronization primitives.
Documentation
1
2
3
4
5
6
7
8
extern crate rustc_version;
use rustc_version::{version, Version};

fn main() {
    if version().unwrap() >= Version::parse("1.26.0").unwrap() {
        println!("cargo:rustc-cfg=has_localkey_try_with");
    }
}