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

@@ -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;
}
}