Skip to content

Commit bc33ea8

Browse files
authored
Merge pull request #446 from ojeda/doc_cfg
Support generating all docs, introduce `doc_cfg` and `doc_all`
2 parents fe76626 + b53d561 commit bc33ea8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rust/kernel/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
const_panic,
2121
const_raw_ptr_deref,
2222
const_unreachable_unchecked,
23+
doc_cfg,
2324
receiver_trait,
2425
try_reserve
2526
)]
@@ -63,7 +64,8 @@ pub mod random;
6364
mod static_assert;
6465
pub mod sync;
6566

66-
#[cfg(CONFIG_SYSCTL)]
67+
#[cfg(any(CONFIG_SYSCTL, doc))]
68+
#[doc(cfg(CONFIG_SYSCTL))]
6769
pub mod sysctl;
6870

6971
pub mod io_buffer;

0 commit comments

Comments
 (0)