Move fortanix module position in std::os reexports for alpha sort

This commit is contained in:
Guillaume Gomez 2021-09-07 15:44:08 +02:00
parent 1c4873c81f
commit 7965a9f143

View File

@ -14,9 +14,6 @@
// documented don't compile (missing things in `libc` which is empty), // documented don't compile (missing things in `libc` which is empty),
// so just omit them with an empty module and add the "unstable" attribute. // so just omit them with an empty module and add the "unstable" attribute.
#[cfg(all(target_vendor = "fortanix", target_env = "sgx"))]
pub mod fortanix_sgx;
// Unix, linux, wasi and windows are handled a bit differently. // Unix, linux, wasi and windows are handled a bit differently.
#[cfg(all( #[cfg(all(
doc, doc,
@ -56,40 +53,55 @@ pub mod wasi {}
pub mod windows {} pub mod windows {}
// unix // unix
#[cfg(not(any( #[cfg(not(all(
all(target_arch = "wasm32", not(target_os = "wasi")), doc,
all(target_vendor = "fortanix", target_env = "sgx") any(
all(target_arch = "wasm32", not(target_os = "wasi")),
all(target_vendor = "fortanix", target_env = "sgx")
)
)))] )))]
#[cfg(all(not(doc), target_os = "hermit"))] #[cfg(target_os = "hermit")]
#[path = "hermit/mod.rs"] #[path = "hermit/mod.rs"]
pub mod unix; pub mod unix;
#[cfg(not(any( #[cfg(not(all(
all(target_arch = "wasm32", not(target_os = "wasi")), doc,
all(target_vendor = "fortanix", target_env = "sgx") any(
all(target_arch = "wasm32", not(target_os = "wasi")),
all(target_vendor = "fortanix", target_env = "sgx")
)
)))] )))]
#[cfg(any(unix, doc))] #[cfg(all(not(target_os = "hermit"), any(unix, doc)))]
pub mod unix; pub mod unix;
// linux // linux
#[cfg(not(any( #[cfg(not(all(
all(target_arch = "wasm32", not(target_os = "wasi")), doc,
all(target_vendor = "fortanix", target_env = "sgx") any(
all(target_arch = "wasm32", not(target_os = "wasi")),
all(target_vendor = "fortanix", target_env = "sgx")
)
)))] )))]
#[cfg(any(target_os = "linux", target_os = "l4re", doc))] #[cfg(any(target_os = "linux", target_os = "l4re", doc))]
pub mod linux; pub mod linux;
// wasi // wasi
#[cfg(not(any( #[cfg(not(all(
all(target_arch = "wasm32", not(target_os = "wasi")), doc,
all(target_vendor = "fortanix", target_env = "sgx") any(
all(target_arch = "wasm32", not(target_os = "wasi")),
all(target_vendor = "fortanix", target_env = "sgx")
)
)))] )))]
#[cfg(any(target_os = "wasi", doc))] #[cfg(any(target_os = "wasi", doc))]
pub mod wasi; pub mod wasi;
// windows // windows
#[cfg(not(any( #[cfg(not(all(
all(target_arch = "wasm32", not(target_os = "wasi")), doc,
all(target_vendor = "fortanix", target_env = "sgx") any(
all(target_arch = "wasm32", not(target_os = "wasi")),
all(target_vendor = "fortanix", target_env = "sgx")
)
)))] )))]
#[cfg(any(windows, doc))] #[cfg(any(windows, doc))]
pub mod windows; pub mod windows;
@ -103,6 +115,8 @@ pub mod windows {}
pub mod emscripten; pub mod emscripten;
#[cfg(target_os = "espidf")] #[cfg(target_os = "espidf")]
pub mod espidf; pub mod espidf;
#[cfg(all(target_vendor = "fortanix", target_env = "sgx"))]
pub mod fortanix_sgx;
#[cfg(target_os = "freebsd")] #[cfg(target_os = "freebsd")]
pub mod freebsd; pub mod freebsd;
#[cfg(target_os = "fuchsia")] #[cfg(target_os = "fuchsia")]