From d882bb516e0998d7f9c2d049dcc618992a1a04c0 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Thu, 11 Jan 2018 11:21:42 +0100 Subject: Add shims for modules that we can't implement on CloudABI. As discussed in #47268, libstd isn't ready to have certain functionality disabled yet. Follow wasm's approach of adding no-op modules for all of the features that we can't implement. I've placed all of those shims in a shims/ subdirectory, so we (the CloudABI folks) can experiment with removing them more easily. It also ensures that the code that does work doesn't get polluted with lots of useless boilerplate code. --- src/libstd/sys_common/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/libstd/sys_common') diff --git a/src/libstd/sys_common/mod.rs b/src/libstd/sys_common/mod.rs index ee71e62e4ca..27504d374dd 100644 --- a/src/libstd/sys_common/mod.rs +++ b/src/libstd/sys_common/mod.rs @@ -43,16 +43,13 @@ pub mod thread_local; pub mod util; pub mod wtf8; pub mod bytestring; -#[cfg(not(target_os = "cloudabi"))] pub mod process; cfg_if! { - if #[cfg(any(target_os = "redox", target_os = "l4re"))] { + if #[cfg(any(target_os = "cloudabi", target_os = "l4re", target_os = "redox"))] { pub use sys::net; } else if #[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] { pub use sys::net; - } else if #[cfg(target_os = "cloudabi")] { - // No networking support on CloudABI (yet). } else { pub mod net; } -- cgit 1.4.1-3-g733a5