export std::os::fd module on HermitOS
The HermitOS' IO interface is similiar to Unix. Consequently, this PR synchronize the FD implementation between both.
This commit is contained in:
@@ -1,13 +1,4 @@
|
|||||||
#![stable(feature = "os_fd", since = "1.66.0")]
|
#![stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
||||||
mod net;
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[path = "../../fd/owned.rs"]
|
pub use crate::os::fd::*;
|
||||||
mod owned;
|
|
||||||
#[path = "../../fd/raw.rs"]
|
|
||||||
mod raw;
|
|
||||||
|
|
||||||
// Export the types and traits for the public API.
|
|
||||||
#[stable(feature = "os_fd", since = "1.66.0")]
|
|
||||||
pub use owned::*;
|
|
||||||
#[stable(feature = "os_fd", since = "1.66.0")]
|
|
||||||
pub use raw::*;
|
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ pub(crate) mod watchos;
|
|||||||
#[cfg(target_os = "xous")]
|
#[cfg(target_os = "xous")]
|
||||||
pub mod xous;
|
pub mod xous;
|
||||||
|
|
||||||
#[cfg(any(unix, target_os = "wasi", doc))]
|
#[cfg(any(unix, target_os = "hermit", target_os = "wasi", doc))]
|
||||||
pub mod fd;
|
pub mod fd;
|
||||||
|
|
||||||
#[cfg(any(target_os = "linux", target_os = "android", doc))]
|
#[cfg(any(target_os = "linux", target_os = "android", doc))]
|
||||||
|
|||||||
Reference in New Issue
Block a user