@@ -18,7 +18,7 @@ pub mod raw;
18
18
#[ cfg( all(
19
19
doc,
20
20
any(
21
- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
21
+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
22
22
all( target_vendor = "fortanix" , target_env = "sgx" )
23
23
)
24
24
) ) ]
@@ -27,7 +27,7 @@ pub mod unix {}
27
27
#[ cfg( all(
28
28
doc,
29
29
any(
30
- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
30
+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
31
31
all( target_vendor = "fortanix" , target_env = "sgx" )
32
32
)
33
33
) ) ]
@@ -36,7 +36,7 @@ pub mod linux {}
36
36
#[ cfg( all(
37
37
doc,
38
38
any(
39
- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
39
+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
40
40
all( target_vendor = "fortanix" , target_env = "sgx" )
41
41
)
42
42
) ) ]
@@ -45,7 +45,7 @@ pub mod wasi {}
45
45
#[ cfg( all(
46
46
doc,
47
47
any(
48
- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
48
+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
49
49
all( target_vendor = "fortanix" , target_env = "sgx" )
50
50
)
51
51
) ) ]
@@ -56,7 +56,7 @@ pub mod windows {}
56
56
#[ cfg( not( all(
57
57
doc,
58
58
any(
59
- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
59
+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
60
60
all( target_vendor = "fortanix" , target_env = "sgx" )
61
61
)
62
62
) ) ) ]
@@ -78,18 +78,18 @@ pub mod linux;
78
78
#[ cfg( not( all(
79
79
doc,
80
80
any(
81
- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
81
+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
82
82
all( target_vendor = "fortanix" , target_env = "sgx" )
83
83
)
84
84
) ) ) ]
85
- #[ cfg( any( target_os = "wasi" , doc) ) ]
85
+ #[ cfg( any( target_os = "wasi" , target_os = "wasi-preview2" , doc) ) ]
86
86
pub mod wasi;
87
87
88
88
// windows
89
89
#[ cfg( not( all(
90
90
doc,
91
91
any(
92
- all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ,
92
+ all( target_arch = "wasm32" , not( target_os = "wasi" ) , not ( target_os = "wasi-preview2" ) ) ,
93
93
all( target_vendor = "fortanix" , target_env = "sgx" )
94
94
)
95
95
) ) ) ]
@@ -155,7 +155,7 @@ pub(crate) mod watchos;
155
155
#[ cfg( target_os = "xous" ) ]
156
156
pub mod xous;
157
157
158
- #[ cfg( any( unix, target_os = "wasi" , doc) ) ]
158
+ #[ cfg( any( unix, target_os = "wasi" , target_os = "wasi-preview2" , doc) ) ]
159
159
pub mod fd;
160
160
161
161
#[ cfg( any( target_os = "linux" , target_os = "android" , doc) ) ]
0 commit comments