Skip to content

Commit 2c19b86

Browse files
tgross35AkhilTThomas
authored andcommitted
Merge pull request rust-lang#3899 from tgross35/wasi-cherry-pick
[0.2] Add wasm32-wasip2 definitions necessary for std::net support
2 parents 78a82c0 + 6ff7a36 commit 2c19b86

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)