100100#![ allow( stable_features) ]
101101#![ cfg_attr( linux_raw, deny( unsafe_code) ) ]
102102#![ cfg_attr( rustc_attrs, feature( rustc_attrs) ) ]
103- #![ cfg_attr( doc_cfg , feature( doc_cfg) ) ]
103+ #![ cfg_attr( docsrs , feature( doc_cfg) ) ]
104104#![ cfg_attr( all( wasi_ext, target_os = "wasi" , feature = "std" ) , feature( wasi_ext) ) ]
105105#![ cfg_attr( core_ffi_c, feature( core_ffi_c) ) ]
106106#![ cfg_attr( core_c_str, feature( core_c_str) ) ]
@@ -196,63 +196,63 @@ pub mod fd {
196196
197197// The public API modules.
198198#[ cfg( feature = "event" ) ]
199- #[ cfg_attr( doc_cfg , doc( cfg( feature = "event" ) ) ) ]
199+ #[ cfg_attr( docsrs , doc( cfg( feature = "event" ) ) ) ]
200200pub mod event;
201201#[ cfg( not( windows) ) ]
202202pub mod ffi;
203203#[ cfg( not( windows) ) ]
204204#[ cfg( feature = "fs" ) ]
205- #[ cfg_attr( doc_cfg , doc( cfg( feature = "fs" ) ) ) ]
205+ #[ cfg_attr( docsrs , doc( cfg( feature = "fs" ) ) ) ]
206206pub mod fs;
207207pub mod io;
208208#[ cfg( linux_kernel) ]
209209#[ cfg( feature = "io_uring" ) ]
210- #[ cfg_attr( doc_cfg , doc( cfg( feature = "io_uring" ) ) ) ]
210+ #[ cfg_attr( docsrs , doc( cfg( feature = "io_uring" ) ) ) ]
211211pub mod io_uring;
212212pub mod ioctl;
213213#[ cfg( not( any( windows, target_os = "espidf" , target_os = "vita" , target_os = "wasi" ) ) ) ]
214214#[ cfg( feature = "mm" ) ]
215- #[ cfg_attr( doc_cfg , doc( cfg( feature = "mm" ) ) ) ]
215+ #[ cfg_attr( docsrs , doc( cfg( feature = "mm" ) ) ) ]
216216pub mod mm;
217217#[ cfg( linux_kernel) ]
218218#[ cfg( feature = "mount" ) ]
219- #[ cfg_attr( doc_cfg , doc( cfg( feature = "mount" ) ) ) ]
219+ #[ cfg_attr( docsrs , doc( cfg( feature = "mount" ) ) ) ]
220220pub mod mount;
221221#[ cfg( not( any( target_os = "redox" , target_os = "wasi" ) ) ) ]
222222#[ cfg( feature = "net" ) ]
223- #[ cfg_attr( doc_cfg , doc( cfg( feature = "net" ) ) ) ]
223+ #[ cfg_attr( docsrs , doc( cfg( feature = "net" ) ) ) ]
224224pub mod net;
225225#[ cfg( not( any( windows, target_os = "espidf" ) ) ) ]
226226#[ cfg( feature = "param" ) ]
227- #[ cfg_attr( doc_cfg , doc( cfg( feature = "param" ) ) ) ]
227+ #[ cfg_attr( docsrs , doc( cfg( feature = "param" ) ) ) ]
228228pub mod param;
229229#[ cfg( not( windows) ) ]
230230#[ cfg( any( feature = "fs" , feature = "mount" , feature = "net" ) ) ]
231231#[ cfg_attr(
232- doc_cfg ,
232+ docsrs ,
233233 doc( cfg( any( feature = "fs" , feature = "mount" , feature = "net" ) ) )
234234) ]
235235pub mod path;
236236#[ cfg( feature = "pipe" ) ]
237- #[ cfg_attr( doc_cfg , doc( cfg( feature = "pipe" ) ) ) ]
237+ #[ cfg_attr( docsrs , doc( cfg( feature = "pipe" ) ) ) ]
238238#[ cfg( not( any( windows, target_os = "wasi" ) ) ) ]
239239pub mod pipe;
240240#[ cfg( not( windows) ) ]
241241#[ cfg( feature = "process" ) ]
242- #[ cfg_attr( doc_cfg , doc( cfg( feature = "process" ) ) ) ]
242+ #[ cfg_attr( docsrs , doc( cfg( feature = "process" ) ) ) ]
243243pub mod process;
244244#[ cfg( feature = "procfs" ) ]
245245#[ cfg( linux_kernel) ]
246- #[ cfg_attr( doc_cfg , doc( cfg( feature = "procfs" ) ) ) ]
246+ #[ cfg_attr( docsrs , doc( cfg( feature = "procfs" ) ) ) ]
247247pub mod procfs;
248248#[ cfg( not( windows) ) ]
249249#[ cfg( not( target_os = "wasi" ) ) ]
250250#[ cfg( feature = "pty" ) ]
251- #[ cfg_attr( doc_cfg , doc( cfg( feature = "pty" ) ) ) ]
251+ #[ cfg_attr( docsrs , doc( cfg( feature = "pty" ) ) ) ]
252252pub mod pty;
253253#[ cfg( not( windows) ) ]
254254#[ cfg( feature = "rand" ) ]
255- #[ cfg_attr( doc_cfg , doc( cfg( feature = "rand" ) ) ) ]
255+ #[ cfg_attr( docsrs , doc( cfg( feature = "rand" ) ) ) ]
256256pub mod rand;
257257#[ cfg( not( any(
258258 windows,
@@ -262,35 +262,35 @@ pub mod rand;
262262 target_os = "wasi"
263263) ) ) ]
264264#[ cfg( feature = "shm" ) ]
265- #[ cfg_attr( doc_cfg , doc( cfg( feature = "shm" ) ) ) ]
265+ #[ cfg_attr( docsrs , doc( cfg( feature = "shm" ) ) ) ]
266266pub mod shm;
267267#[ cfg( not( windows) ) ]
268268#[ cfg( feature = "stdio" ) ]
269- #[ cfg_attr( doc_cfg , doc( cfg( feature = "stdio" ) ) ) ]
269+ #[ cfg_attr( docsrs , doc( cfg( feature = "stdio" ) ) ) ]
270270pub mod stdio;
271271#[ cfg( feature = "system" ) ]
272272#[ cfg( not( any( windows, target_os = "wasi" ) ) ) ]
273- #[ cfg_attr( doc_cfg , doc( cfg( feature = "system" ) ) ) ]
273+ #[ cfg_attr( docsrs , doc( cfg( feature = "system" ) ) ) ]
274274pub mod system;
275275#[ cfg( not( any( windows, target_os = "vita" ) ) ) ]
276276#[ cfg( feature = "termios" ) ]
277- #[ cfg_attr( doc_cfg , doc( cfg( feature = "termios" ) ) ) ]
277+ #[ cfg_attr( docsrs , doc( cfg( feature = "termios" ) ) ) ]
278278pub mod termios;
279279#[ cfg( not( windows) ) ]
280280#[ cfg( feature = "thread" ) ]
281- #[ cfg_attr( doc_cfg , doc( cfg( feature = "thread" ) ) ) ]
281+ #[ cfg_attr( docsrs , doc( cfg( feature = "thread" ) ) ) ]
282282pub mod thread;
283283#[ cfg( not( any( windows, target_os = "espidf" ) ) ) ]
284284#[ cfg( feature = "time" ) ]
285- #[ cfg_attr( doc_cfg , doc( cfg( feature = "time" ) ) ) ]
285+ #[ cfg_attr( docsrs , doc( cfg( feature = "time" ) ) ) ]
286286pub mod time;
287287
288288// "runtime" is also a public API module, but it's only for libc-like users.
289289#[ cfg( not( windows) ) ]
290290#[ cfg( feature = "runtime" ) ]
291291#[ cfg( linux_raw) ]
292292#[ cfg_attr( not( document_experimental_runtime_api) , doc( hidden) ) ]
293- #[ cfg_attr( doc_cfg , doc( cfg( feature = "runtime" ) ) ) ]
293+ #[ cfg_attr( docsrs , doc( cfg( feature = "runtime" ) ) ) ]
294294pub mod runtime;
295295
296296// Temporarily provide some mount functions for use in the fs module for
@@ -315,7 +315,7 @@ pub(crate) mod mount;
315315 target_arch = "x86" ,
316316 )
317317) ) ]
318- #[ cfg_attr( doc_cfg , doc( cfg( feature = "fs" ) ) ) ]
318+ #[ cfg_attr( docsrs , doc( cfg( feature = "fs" ) ) ) ]
319319pub ( crate ) mod fs;
320320
321321// Similarly, declare `path` as a non-public module if needed.
0 commit comments