Skip to content

Commit

Permalink
fix: enable wasip2 feature for wasm32-wasip2 target (bytecodealliance…
Browse files Browse the repository at this point in the history
…#1205)

* 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 Nov 4, 2024
1 parent cf68714 commit 5a3dabc
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 5a3dabc

Please sign in to comment.