Skip to content

Commit e66e263

Browse files
committed
Make the main wasi module cfg(not(doc)).
1 parent 0208fca commit e66e263

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/std/src/os/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ pub use crate::sys::ext as windows;
4141
#[cfg(any(target_os = "linux", target_os = "l4re"))]
4242
pub mod linux;
4343

44+
#[cfg(not(doc))]
45+
#[cfg(target_os = "wasi")]
46+
pub mod wasi;
47+
4448
#[cfg(target_os = "android")]
4549
pub mod android;
4650
#[cfg(target_os = "dragonfly")]
@@ -71,7 +75,5 @@ pub mod redox;
7175
pub mod solaris;
7276
#[cfg(target_os = "vxworks")]
7377
pub mod vxworks;
74-
#[cfg(target_os = "wasi")]
75-
pub mod wasi;
7678

7779
pub mod raw;

0 commit comments

Comments
 (0)