Skip to content

Commit

Permalink
fix: enable wasip2 feature for wasm32-wasip2 target (#1205)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
cdmurph32 authored and sunfishcode committed Nov 4, 2024
1 parent ce48183 commit 1d49bb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// wasip2 conditionally gates stdlib APIs.
// https://github.com/rust-lang/rust/issues/130323
#![cfg_attr(all(target_os = "wasi", target_env = "p2"), feature(wasip2))]
//! `rustix` provides efficient memory-safe and [I/O-safe] wrappers to
//! POSIX-like, Unix-like, Linux, and Winsock syscall-like APIs, with
//! configurable backends.
Expand Down

0 comments on commit 1d49bb2

Please sign in to comment.