#![allow(missing_docs)]
#![allow(missing_debug_implementations)]
-use sync::Once;
-use sys;
+use crate::sync::Once;
+use crate::sys;
macro_rules! rtabort {
- ($($t:tt)*) => (::sys_common::util::abort(format_args!($($t)*)))
+ ($($t:tt)*) => (crate::sys_common::util::abort(format_args!($($t)*)))
}
macro_rules! rtassert {
pub mod condvar;
pub mod io;
pub mod mutex;
+#[cfg(any(rustdoc, // see `mod os`, docs are generated for multiple platforms
+ unix,
+ target_os = "redox",
+ target_os = "cloudabi",
+ target_arch = "wasm32",
+ all(target_vendor = "fortanix", target_env = "sgx")))]
+pub mod os_str_bytes;
pub mod poison;
pub mod remutex;
pub mod rwlock;
target_os = "l4re",
target_os = "redox",
all(target_arch = "wasm32", not(target_os = "emscripten")),
- target_env = "sgx"))] {
- pub use sys::net;
+ all(target_vendor = "fortanix", target_env = "sgx")))] {
+ pub use crate::sys::net;
} else {
pub mod net;
}