Skip to content

Commit 6ff7a36

Browse files
nickrumAkhilTThomas
authored andcommitted
Add wasm32-wasip2 definitions necessary for std::net support
(backport <rust-lang#3892>) (cherry picked from commit 78e7b89)
1 parent 78a82c0 commit 6ff7a36

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/wasi/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,3 +873,10 @@ cfg_if! {
873873
pub use self::p2::*;
874874
}
875875
}
876+
877+
cfg_if! {
878+
if #[cfg(target_env = "p2")] {
879+
mod p2;
880+
pub use self::p2::*;
881+
}
882+
}

0 commit comments

Comments
 (0)