Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit47090b1

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 parent209f8c8 commit47090b1

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-
pubuse owned::*;
12-
#[stable(feature ="os_fd", since ="1.66.0")]
13-
pubuse raw::*;
3+
#[stable(feature ="rust1", since ="1.0.0")]
4+
pubusecrate::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
pubmod xous;
162162

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp