Skip to content

Commit 9b3785f

Browse files
committed
Re-enable networking module fo rL4Re
As suggested in the discussion of PR rust-lang#43972, std should provide a uniform API to all platforms. Since there's no networking on L4Re, this now is a module in `sys::net` providing types and functions/methods returning an error for each action.
1 parent 5089909 commit 9b3785f

File tree

6 files changed

+450
-7
lines changed

6 files changed

+450
-7
lines changed

src/libstd/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,6 @@ pub mod error;
469469
pub mod ffi;
470470
pub mod fs;
471471
pub mod io;
472-
#[cfg(not(target_os = "l4re"))]
473472
pub mod net;
474473
pub mod num;
475474
pub mod os;

src/libstd/sys/unix/ext/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ pub mod fs;
3636
pub mod process;
3737
pub mod raw;
3838
pub mod thread;
39-
#[cfg(not(target_os = "l4re"))]
4039
pub mod net;
4140

4241
/// A prelude for conveniently writing platform-specific code.

0 commit comments

Comments
 (0)