parking_lot 0.8.0

More compact and efficient implementations of the standard synchronization primitives.
Documentation
1
2
3
4
5
6
7
8
use rustc_version::{version, Version};

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