@@ -18,7 +18,7 @@ pub mod raw;
1818#[ cfg( all(
1919 doc,
2020 any(
21- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
21+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
2222 all( target_vendor = "fortanix" , target_env = "sgx" )
2323 )
2424) ) ]
@@ -27,7 +27,7 @@ pub mod unix {}
2727#[ cfg( all(
2828 doc,
2929 any(
30- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
30+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
3131 all( target_vendor = "fortanix" , target_env = "sgx" )
3232 )
3333) ) ]
@@ -36,7 +36,7 @@ pub mod linux {}
3636#[ cfg( all(
3737 doc,
3838 any(
39- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
39+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
4040 all( target_vendor = "fortanix" , target_env = "sgx" )
4141 )
4242) ) ]
@@ -45,7 +45,7 @@ pub mod wasi {}
4545#[ cfg( all(
4646 doc,
4747 any(
48- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
48+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
4949 all( target_vendor = "fortanix" , target_env = "sgx" )
5050 )
5151) ) ]
@@ -56,7 +56,7 @@ pub mod windows {}
5656#[ cfg( not( all(
5757 doc,
5858 any(
59- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
59+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
6060 all( target_vendor = "fortanix" , target_env = "sgx" )
6161 )
6262) ) ) ]
@@ -78,18 +78,18 @@ pub mod linux;
7878#[ cfg( not( all(
7979 doc,
8080 any(
81- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
81+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
8282 all( target_vendor = "fortanix" , target_env = "sgx" )
8383 )
8484) ) ) ]
85- #[ cfg( any( target_os = "wasi" , doc) ) ]
85+ #[ cfg( any( target_os = "wasi" , target_os = "wasi-preview2" , doc) ) ]
8686pub mod wasi;
8787
8888// windows
8989#[ cfg( not( all(
9090 doc,
9191 any(
92- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
92+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
9393 all( target_vendor = "fortanix" , target_env = "sgx" )
9494 )
9595) ) ) ]
@@ -155,7 +155,7 @@ pub(crate) mod watchos;
155155#[ cfg( target_os = "xous" ) ]
156156pub mod xous;
157157
158- #[ cfg( any( unix, target_os = "wasi" , doc) ) ]
158+ #[ cfg( any( unix, target_os = "wasi" , target_os = "wasi-preview2" , doc) ) ]
159159pub mod fd;
160160
161161#[ cfg( any( target_os = "linux" , target_os = "android" , doc) ) ]
0 commit comments