Raise required compiler for serde_derive to 1.61

This is the rust-version declared by recent versions of Syn.
This commit is contained in:
David Tolnay committed 2024-10-21 19:30:51 -07:00
1 parent 6a7de26e5a
commit 991e344804
5 files changed
+15 -13

No files matched your search

+5 -5
View File
@@ -50,11 +50,6 @@ fn main() {
println!("cargo:rustc-cfg=no_float_copysign");
}
// Current minimum supported version of serde_derive crate is Rust 1.56.
if minor < 56 {
println!("cargo:rustc-cfg=no_serde_derive");
}
// Support for #[cfg(target_has_atomic = "...")] stabilized in Rust 1.60.
if minor < 60 {
println!("cargo:rustc-cfg=no_target_has_atomic");
@@ -76,6 +71,11 @@ fn main() {
}
}
// Current minimum supported version of serde_derive crate is Rust 1.61.
if minor < 61 {
println!("cargo:rustc-cfg=no_serde_derive");
}
// Support for core::ffi::CStr and alloc::ffi::CString stabilized in Rust 1.64.
// https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html#c-compatible-ffi-types-in-core-and-alloc
if minor < 64 {