Make the main wasi module cfg(not(doc)).

This commit is contained in:
Dan Gohman 2021-02-24 10:43:50 -08:00
parent 0208fca342
commit e66e263544

View File

@ -41,6 +41,10 @@
#[cfg(any(target_os = "linux", target_os = "l4re"))] #[cfg(any(target_os = "linux", target_os = "l4re"))]
pub mod linux; pub mod linux;
#[cfg(not(doc))]
#[cfg(target_os = "wasi")]
pub mod wasi;
#[cfg(target_os = "android")] #[cfg(target_os = "android")]
pub mod android; pub mod android;
#[cfg(target_os = "dragonfly")] #[cfg(target_os = "dragonfly")]
@ -71,7 +75,5 @@
pub mod solaris; pub mod solaris;
#[cfg(target_os = "vxworks")] #[cfg(target_os = "vxworks")]
pub mod vxworks; pub mod vxworks;
#[cfg(target_os = "wasi")]
pub mod wasi;
pub mod raw; pub mod raw;