summaryrefslogtreecommitdiff
path: root/build.rs
blob: 084bb0d7097f0d29d8ccdfcab17ec59f127e22a5 (plain)
1
2
3
4
5
6
7
8
9
10
extern crate rustc_version;
extern crate semver;

use semver::Version;

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