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/lib.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/libstd/lib.rs') diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 606ba488b6f..3b79e0c4f82 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -473,21 +473,16 @@ pub mod f64; pub mod thread; pub mod ascii; pub mod collections; -#[cfg(not(target_os = "cloudabi"))] pub mod env; pub mod error; pub mod ffi; -#[cfg(not(target_os = "cloudabi"))] pub mod fs; pub mod io; -#[cfg(not(target_os = "cloudabi"))] pub mod net; pub mod num; pub mod os; pub mod panic; -#[cfg(not(target_os = "cloudabi"))] pub mod path; -#[cfg(not(target_os = "cloudabi"))] pub mod process; pub mod sync; pub mod time; -- cgit 1.4.1-3-g733a5