@@ -14,15 +14,10 @@ const ALLOWED_CFGS: &'static [&'static str] = &[
14
14
"freebsd13" ,
15
15
"freebsd14" ,
16
16
"freebsd15" ,
17
- "libc_cfg_target_vendor" ,
18
17
"libc_const_extern_fn" ,
19
18
"libc_const_extern_fn_unstable" ,
20
- "libc_core_cvoid" ,
21
19
"libc_deny_warnings" ,
22
- "libc_int128" ,
23
20
"libc_long_array" ,
24
- "libc_non_exhaustive" ,
25
- "libc_packedN" ,
26
21
"libc_ptr_addr_of" ,
27
22
"libc_thread_local" ,
28
23
"libc_underscore_const_names" ,
@@ -54,13 +49,6 @@ fn main() {
54
49
let libc_ci = env:: var ( "LIBC_CI" ) . is_ok ( ) ;
55
50
let libc_check_cfg = env:: var ( "LIBC_CHECK_CFG" ) . is_ok ( ) || rustc_minor_ver >= 80 ;
56
51
57
- if env:: var ( "CARGO_FEATURE_USE_STD" ) . is_ok ( ) {
58
- println ! (
59
- "cargo:warning=\" libc's use_std cargo feature is deprecated since libc 0.2.55; \
60
- please consider using the `std` cargo feature instead\" "
61
- ) ;
62
- }
63
-
64
52
// The ABI of libc used by std is backward compatible with FreeBSD 12.
65
53
// The ABI of libc from crates.io is backward compatible with FreeBSD 11.
66
54
//
@@ -94,29 +82,6 @@ fn main() {
94
82
set_cfg ( "libc_deny_warnings" ) ;
95
83
}
96
84
97
- // Rust >= 1.26 supports i128 and u128:
98
- if rustc_minor_ver >= 26 || rustc_dep_of_std {
99
- set_cfg ( "libc_int128" ) ;
100
- }
101
-
102
- // Rust >= 1.30 supports `core::ffi::c_void`, so libc can just re-export it.
103
- // Otherwise, it defines an incompatible type to retaining
104
- // backwards-compatibility.
105
- if rustc_minor_ver >= 30 || rustc_dep_of_std {
106
- set_cfg ( "libc_core_cvoid" ) ;
107
- }
108
-
109
- // Rust >= 1.33 supports repr(packed(N)) and cfg(target_vendor).
110
- if rustc_minor_ver >= 33 || rustc_dep_of_std {
111
- set_cfg ( "libc_packedN" ) ;
112
- set_cfg ( "libc_cfg_target_vendor" ) ;
113
- }
114
-
115
- // Rust >= 1.40 supports #[non_exhaustive].
116
- if rustc_minor_ver >= 40 || rustc_dep_of_std {
117
- set_cfg ( "libc_non_exhaustive" ) ;
118
- }
119
-
120
85
// Rust >= 1.47 supports long array:
121
86
if rustc_minor_ver >= 47 || rustc_dep_of_std {
122
87
set_cfg ( "libc_long_array" ) ;
0 commit comments