Skip to content

Commit 47090b1

Browse files
committed
export std::os::fd module on HermitOS
The HermitOS' IO interface is similiar to Unix. Consequently, this PR synchronize the FD implementation between both.
1 parent 209f8c8 commit 47090b1

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

std/src/os/hermit/io/mod.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
#![stable(feature = "os_fd", since = "1.66.0")]
1+
#![stable(feature = "rust1", since = "1.0.0")]
22

3-
mod net;
4-
#[path = "../../fd/owned.rs"]
5-
mod owned;
6-
#[path = "../../fd/raw.rs"]
7-
mod raw;
8-
9-
// Export the types and traits for the public API.
10-
#[stable(feature = "os_fd", since = "1.66.0")]
11-
pub use owned::*;
12-
#[stable(feature = "os_fd", since = "1.66.0")]
13-
pub use raw::*;
3+
#[stable(feature = "rust1", since = "1.0.0")]
4+
pub use crate::os::fd::*;

std/src/os/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pub(crate) mod watchos;
160160
#[cfg(target_os = "xous")]
161161
pub mod xous;
162162

163-
#[cfg(any(unix, target_os = "wasi", doc))]
163+
#[cfg(any(unix, target_os = "hermit", target_os = "wasi", doc))]
164164
pub mod fd;
165165

166166
#[cfg(any(target_os = "linux", target_os = "android", doc))]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy