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 <cdmurph32@gmail.com>

* Do not change MSRV

---------

Signed-off-by: Colin Murphy <cdmurph32@gmail.com>
  • Loading branch information
cdmurph32 authored and sunfishcode committed Nov 4, 2024
1 parent 9fd6e48 commit 2b4becf
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 2b4becf

Please sign in to comment.