gate atomic serde on rust 1.34 or higher

This commit is contained in:
James Brown
2019-07-12 13:44:42 -07:00
parent de709e72a8
commit 4e5f63ff45
4 changed files with 30 additions and 27 deletions
+4
View File
@@ -68,6 +68,10 @@ fn main() {
if minor >= 28 {
println!("cargo:rustc-cfg=num_nonzero");
}
if minor >= 34 {
println!("cargo:rustc-cfg=std_integer_atomics");
}
}
fn rustc_minor_version() -> Option<u32> {