Skip to content

Commit d2fb5b0

Browse files
alexcrichtontgross35
authored andcommitted
wasip2: Invert conditional to include p2 APIs
This commit switches `cfg(target_feature = "p2")` to instead using `cfg(not(target_feature = "p1"))` to be more future-proof of new Rust targets such as `wasm32-wasip3`. All future targets will support the same set of functionality in `wasm32-wasip2`, so this should be valid for future targets.
1 parent d2ece10 commit d2fb5b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wasi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ extern "C" {
846846
}
847847

848848
cfg_if! {
849-
if #[cfg(target_env = "p2")] {
849+
if #[cfg(not(target_env = "p1"))] {
850850
mod p2;
851851
pub use self::p2::*;
852852
}

0 commit comments

Comments
 (0)