Skip to content

Commit 0b77464

Browse files
humendaTobias Schaffner
authored and
Tobias Schaffner
committed
Re-enable networking module fo rL4Re
As suggested in the discussion of PR #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 9bbc6db commit 0b77464

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
@@ -466,7 +466,6 @@ pub mod error;
466466
pub mod ffi;
467467
pub mod fs;
468468
pub mod io;
469-
#[cfg(not(target_os = "l4re"))]
470469
pub mod net;
471470
pub mod num;
472471
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)