|
83 | 83 | ))]
|
84 | 84 |
|
85 | 85 | // Attributes needed when building as part of the standard library
|
86 |
| -#![cfg_attr(stdbuild, feature(no_std, staged_api, custom_attribute))] |
87 |
| -#![cfg_attr(stdbuild, feature(link_cfg))] |
88 |
| -#![cfg_attr(stdbuild, no_std)] |
89 |
| -#![cfg_attr(stdbuild, staged_api)] |
90 |
| -#![cfg_attr(stdbuild, allow(warnings))] |
91 |
| -#![cfg_attr(stdbuild, unstable(feature = "libc", |
| 86 | +#![cfg_attr(feature = "stdbuild", feature(no_std, staged_api, custom_attribute))] |
| 87 | +#![cfg_attr(feature = "stdbuild", feature(link_cfg))] |
| 88 | +#![cfg_attr(feature = "stdbuild", no_std)] |
| 89 | +#![cfg_attr(feature = "stdbuild", staged_api)] |
| 90 | +#![cfg_attr(feature = "stdbuild", allow(warnings))] |
| 91 | +#![cfg_attr(feature = "stdbuild", unstable(feature = "libc", |
92 | 92 | reason = "use `libc` from crates.io",
|
93 | 93 | issue = "27783"))]
|
94 | 94 |
|
95 | 95 | #![cfg_attr(not(feature = "use_std"), no_std)]
|
96 | 96 |
|
97 |
| -#[cfg(all(not(stdbuild), not(dox), feature = "use_std"))] |
| 97 | +#[cfg(all(not(dox), feature = "use_std"))] |
98 | 98 | extern crate std as core;
|
99 | 99 |
|
100 | 100 | #[macro_use] mod macros;
|
|
0 commit comments