|
1 | 1 | #![doc = include_str!("../README.md")] |
2 | 2 | #![deny(missing_docs)] |
3 | 3 | #![cfg_attr(debug_assertions, allow(internal_features))] |
4 | | -#![cfg_attr(doc_cfg, feature(doc_cfg))] |
| 4 | +#![cfg_attr(docsrs, feature(doc_cfg))] |
5 | 5 | #![feature(asm_const)] |
6 | 6 | #![feature(naked_functions)] |
7 | 7 | #![cfg_attr(debug_assertions, feature(link_llvm_intrinsics))] |
8 | 8 | #![cfg_attr(feature = "experimental-relocate", feature(cfg_relocation_model))] |
9 | 9 | #![feature(strict_provenance)] |
10 | 10 | #![feature(exposed_provenance)] |
11 | 11 | #![deny(fuzzy_provenance_casts, lossy_provenance_casts)] |
12 | | -#![allow(unexpected_cfgs)] |
13 | 12 | #![no_std] |
14 | 13 |
|
15 | 14 | #[cfg(all(feature = "alloc", not(feature = "rustc-dep-of-std")))] |
@@ -42,12 +41,12 @@ mod relocate; |
42 | 41 |
|
43 | 42 | pub mod program; |
44 | 43 | #[cfg(feature = "signal")] |
45 | | -#[cfg_attr(doc_cfg, doc(cfg(feature = "signal")))] |
| 44 | +#[cfg_attr(docsrs, doc(cfg(feature = "signal")))] |
46 | 45 | #[cfg_attr(feature = "origin-signal", path = "signal/linux_raw.rs")] |
47 | 46 | #[cfg_attr(not(feature = "origin-signal"), path = "signal/libc.rs")] |
48 | 47 | pub mod signal; |
49 | 48 | #[cfg(feature = "thread")] |
50 | | -#[cfg_attr(doc_cfg, doc(cfg(feature = "thread")))] |
| 49 | +#[cfg_attr(docsrs, doc(cfg(feature = "thread")))] |
51 | 50 | #[cfg_attr(feature = "origin-thread", path = "thread/linux_raw.rs")] |
52 | 51 | #[cfg_attr(not(feature = "origin-thread"), path = "thread/libc.rs")] |
53 | 52 | pub mod thread; |
0 commit comments