Move std::sys::windows::ext to std::os::windows

This commit is contained in:
Christiaan Dirkx 2021-03-04 15:15:26 +01:00
parent 7024bfffbd
commit ffc20e48de
10 changed files with 5 additions and 16 deletions

View file

@ -23,8 +23,7 @@ cfg_if::cfg_if! {
#[stable(feature = "wasi_ext_doc", since = "1.35.0")]
pub use crate::sys::wasi_ext as wasi;
#[stable(feature = "rust1", since = "1.0.0")]
pub use crate::sys::windows_ext as windows;
pub mod windows;
} else if #[cfg(doc)] {
// On certain platforms right now the "main modules" modules that are
// documented don't compile (missing things in `libc` which is empty),
@ -94,7 +93,6 @@ cfg_if::cfg_if! {
pub mod wasi;
#[cfg(windows)]
#[stable(feature = "rust1", since = "1.0.0")]
pub use crate::sys::ext as windows;
pub mod windows;
}
}

View file

@ -8,7 +8,6 @@
#![stable(feature = "rust1", since = "1.0.0")]
#![doc(cfg(windows))]
#![allow(missing_docs)]
pub mod ffi;
pub mod fs;

View file

@ -78,23 +78,16 @@ cfg_if::cfg_if! {
all(target_vendor = "fortanix", target_env = "sgx")
)))]
cfg_if::cfg_if! {
if #[cfg(windows)] {
#[allow(missing_docs)]
#[stable(feature = "rust1", since = "1.0.0")]
pub use self::ext as windows_ext;
} else {
if #[cfg(not(windows))] {
// On non-Windows platforms (aka linux/osx/etc) pull in a "minimal"
// amount of windows goop which ends up compiling
#[macro_use]
#[path = "windows/compat.rs"]
mod compat;
pub mod compat;
#[path = "windows/c.rs"]
mod c;
#[path = "windows/ext/mod.rs"]
pub mod windows_ext;
pub mod c;
}
}

View file

@ -18,7 +18,6 @@ pub mod c;
pub mod cmath;
pub mod condvar;
pub mod env;
pub mod ext;
pub mod fs;
pub mod handle;
pub mod io;