about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2021-02-24 10:43:50 -0800
committerDan Gohman <dev@sunfishcode.online>2021-02-24 10:43:50 -0800
commite66e2635442b47808a5e23db83b461c11d2943fc (patch)
tree75c0da5a5760fd16acc2d3c731d3a157c14dc745 /library/std/src
parent0208fca342977838be7c718fb0335931fbb56cff (diff)
downloadrust-e66e2635442b47808a5e23db83b461c11d2943fc.tar.gz
rust-e66e2635442b47808a5e23db83b461c11d2943fc.zip
Make the main `wasi` module `cfg(not(doc))`.
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/os/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/std/src/os/mod.rs b/library/std/src/os/mod.rs
index fad5886def7..ca8c4c9c420 100644
--- a/library/std/src/os/mod.rs
+++ b/library/std/src/os/mod.rs
@@ -41,6 +41,10 @@ pub use crate::sys::ext as windows;
 #[cfg(any(target_os = "linux", target_os = "l4re"))]
 pub mod linux;
 
+#[cfg(not(doc))]
+#[cfg(target_os = "wasi")]
+pub mod wasi;
+
 #[cfg(target_os = "android")]
 pub mod android;
 #[cfg(target_os = "dragonfly")]
@@ -71,7 +75,5 @@ pub mod redox;
 pub mod solaris;
 #[cfg(target_os = "vxworks")]
 pub mod vxworks;
-#[cfg(target_os = "wasi")]
-pub mod wasi;
 
 pub mod raw;