Skip to content

Commit 1d49bb2

Browse files
cdmurph32sunfishcode
authored andcommitted
fix: enable wasip2 feature for wasm32-wasip2 target (#1205)
* fix: enable wasip2 feature for wasm32-wasip2 target Signed-off-by: Colin Murphy <[email protected]> * Do not change MSRV --------- Signed-off-by: Colin Murphy <[email protected]>
1 parent ce48183 commit 1d49bb2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// wasip2 conditionally gates stdlib APIs.
2+
// https://github.com/rust-lang/rust/issues/130323
3+
#![cfg_attr(all(target_os = "wasi", target_env = "p2"), feature(wasip2))]
14
//! `rustix` provides efficient memory-safe and [I/O-safe] wrappers to
25
//! POSIX-like, Unix-like, Linux, and Winsock syscall-like APIs, with
36
//! configurable backends.

0 commit comments

Comments
 (0)