mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-20 11:31:04 +00:00
Implement for std::num::NonZero* on Rust 1.28+
… regardless of the `unstable` feature. Fix #1274.
This commit is contained in:
@@ -38,4 +38,10 @@ fn main() {
|
||||
if minor >= 26 {
|
||||
println!("cargo:rustc-cfg=integer128");
|
||||
}
|
||||
|
||||
// Non-zero integers stabilized in Rust 1.28:
|
||||
// https://github.com/rust-lang/rust/pull/50808
|
||||
if minor >= 28 {
|
||||
println!("cargo:rustc-cfg=num_nonzero");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user