Skip to content

Commit 3edba7a

Browse files
committed
Move std::sys::wasi::ext to std::os::wasi
1 parent a808fd4 commit 3edba7a

File tree

8 files changed

+2
-26
lines changed

8 files changed

+2
-26
lines changed

library/std/src/os/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ cfg_if::cfg_if! {
1919

2020
pub mod linux;
2121

22-
#[stable(feature = "wasi_ext_doc", since = "1.35.0")]
23-
pub use crate::sys::wasi_ext as wasi;
22+
pub mod wasi;
2423

2524
pub mod windows;
2625
} else if #[cfg(doc)] {

library/std/src/os/wasi.rs

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

library/std/src/sys/wasi/ext/mod.rs renamed to library/std/src/os/wasi/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
//! }
2626
//! ```
2727
28+
#![stable(feature = "rust1", since = "1.0.0")]
2829
#![deny(unsafe_op_in_unsafe_fn)]
2930
#![doc(cfg(target_os = "wasi"))]
3031

library/std/src/sys/mod.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,3 @@ cfg_if::cfg_if! {
7474
pub mod c;
7575
}
7676
}
77-
78-
#[cfg(doc)]
79-
#[cfg(not(any(
80-
target_os = "hermit",
81-
all(target_arch = "wasm32", not(target_os = "wasi")),
82-
all(target_vendor = "fortanix", target_env = "sgx")
83-
)))]
84-
cfg_if::cfg_if! {
85-
if #[cfg(target_os = "wasi")] {
86-
#[stable(feature = "wasi_ext_doc", since = "1.35.0")]
87-
pub use self::ext as wasi_ext;
88-
} else {
89-
#[path = "wasi/ext/mod.rs"]
90-
#[stable(feature = "wasi_ext_doc", since = "1.35.0")]
91-
pub mod wasi_ext;
92-
}
93-
}

library/std/src/sys/wasi/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ pub mod mutex;
3333
pub mod net;
3434
pub mod os;
3535
pub use crate::sys_common::os_str_bytes as os_str;
36-
pub mod ext;
3736
#[path = "../unix/path.rs"]
3837
pub mod path;
3938
#[path = "../unsupported/pipe.rs"]

0 commit comments

Comments
 (0)