toml-rs/test-suite/build.rs
2018-07-11 00:50:04 -07:00

10 lines
293 B
Rust

extern crate rustc_version;
use rustc_version::{version, Version};
fn main() {
if version().unwrap() >= Version::parse("1.20.0").unwrap() {
println!(r#"cargo:rustc-cfg=feature="test-quoted-keys-in-macro""#);
println!(r#"cargo:rustc-cfg=feature="test-nan-sign""#);
}
}