File tree Expand file tree Collapse file tree 5 files changed +25
-3
lines changed Expand file tree Collapse file tree 5 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,20 @@ fn main() {
1313 None => return ,
1414 } ;
1515
16+ if minor >= 77 {
17+ println ! ( "cargo:rustc-check-cfg=cfg(no_core_cstr)" ) ;
18+ println ! ( "cargo:rustc-check-cfg=cfg(no_core_num_saturating)" ) ;
19+ println ! ( "cargo:rustc-check-cfg=cfg(no_core_try_from)" ) ;
20+ println ! ( "cargo:rustc-check-cfg=cfg(no_float_copysign)" ) ;
21+ println ! ( "cargo:rustc-check-cfg=cfg(no_num_nonzero_signed)" ) ;
22+ println ! ( "cargo:rustc-check-cfg=cfg(no_relaxed_trait_bounds)" ) ;
23+ println ! ( "cargo:rustc-check-cfg=cfg(no_serde_derive)" ) ;
24+ println ! ( "cargo:rustc-check-cfg=cfg(no_std_atomic)" ) ;
25+ println ! ( "cargo:rustc-check-cfg=cfg(no_std_atomic64)" ) ;
26+ println ! ( "cargo:rustc-check-cfg=cfg(no_systemtime_checked_add)" ) ;
27+ println ! ( "cargo:rustc-check-cfg=cfg(no_target_has_atomic)" ) ;
28+ }
29+
1630 // TryFrom was stabilized in Rust 1.34:
1731 // https://blog.rust-lang.org/2019/04/11/Rust-1.34.0.html#tryfrom-and-tryinto
1832 if minor < 34 {
Original file line number Diff line number Diff line change 11[package ]
22name = " serde_derive_internals"
3- version = " 0.29.0 "
3+ version = " 0.29.1 "
44authors = [
" Erick Tryzelaar <[email protected] >" ,
" David Tolnay <[email protected] >" ]
55description = " AST representation used by Serde derive macros. Unstable."
66documentation = " https://docs.rs/serde_derive_internals"
Original file line number Diff line number Diff line change 11use std:: path:: Path ;
22
33fn main ( ) {
4+ // Warning: build.rs is not published to crates.io.
5+
46 println ! ( "cargo:rerun-if-changed=build.rs" ) ;
57 println ! ( "cargo:rerun-if-changed=src/mod.rs" ) ;
68
9+ println ! ( "cargo:rustc-cfg=check_cfg" ) ;
10+ println ! ( "cargo:rustc-check-cfg=cfg(check_cfg)" ) ;
11+ println ! ( "cargo:rustc-check-cfg=cfg(exhaustive)" ) ;
12+ println ! ( "cargo:rustc-check-cfg=cfg(serde_build_from_git)" ) ;
13+ println ! ( "cargo:rustc-check-cfg=cfg(feature, values(\" deserialize_in_place\" ))" ) ;
14+
715 // Sometimes on Windows the git checkout does not correctly wire up the
816 // symlink from serde_derive_internals/src to serde_derive/src/internals.
917 // When this happens we'll just build based on relative paths within the git
Original file line number Diff line number Diff line change 1- #![ doc( html_root_url = "https://docs.rs/serde_derive_internals/0.29.0" ) ]
1+ #![ doc( html_root_url = "https://docs.rs/serde_derive_internals/0.29.1" ) ]
2+ #![ cfg_attr( not( check_cfg) , allow( unexpected_cfgs) ) ]
23// Ignored clippy lints
34#![ allow(
45 clippy:: cognitive_complexity,
Original file line number Diff line number Diff line change @@ -1524,7 +1524,6 @@ fn test_systemtime_overflow_struct() {
15241524 ) ;
15251525}
15261526
1527- #[ cfg( systemtime_checked_add) ]
15281527#[ test]
15291528fn test_systemtime_overflow ( ) {
15301529 assert_de_tokens_error :: < SystemTime > (
You can’t perform that action at this time.
0 commit comments