diff options
| author | Ed Schouten <ed@nuxi.nl> | 2018-01-11 11:21:42 +0100 |
|---|---|---|
| committer | Ed Schouten <ed@nuxi.nl> | 2018-01-11 11:26:13 +0100 |
| commit | d882bb516e0998d7f9c2d049dcc618992a1a04c0 (patch) | |
| tree | 02370689e6220246902e84563623e84fb80c74a5 /src/libstd/sys_common | |
| parent | 20745264ce3298147067fcb46e1f51efcb9670e4 (diff) | |
| download | rust-d882bb516e0998d7f9c2d049dcc618992a1a04c0.tar.gz rust-d882bb516e0998d7f9c2d049dcc618992a1a04c0.zip | |
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.
Diffstat (limited to 'src/libstd/sys_common')
| -rw-r--r-- | src/libstd/sys_common/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
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; } |
