@@ -49,12 +49,12 @@ pub use libp2p_core as core;
49
49
#[ doc( inline) ]
50
50
pub use libp2p_dcutr as dcutr;
51
51
#[ cfg( feature = "deflate" ) ]
52
- #[ cfg( not( any ( target_os = "emscripten" , target_os = "wasi" , target_os = "unknown" ) ) ) ]
52
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
53
53
#[ doc( inline) ]
54
54
pub use libp2p_deflate as deflate;
55
55
#[ cfg( feature = "dns" ) ]
56
56
#[ cfg_attr( docsrs, doc( cfg( feature = "dns" ) ) ) ]
57
- #[ cfg( not( any ( target_os = "emscripten" , target_os = "wasi" , target_os = "unknown" ) ) ) ]
57
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
58
58
#[ doc( inline) ]
59
59
pub use libp2p_dns as dns;
60
60
#[ cfg( feature = "floodsub" ) ]
@@ -71,7 +71,7 @@ pub use libp2p_identify as identify;
71
71
#[ doc( inline) ]
72
72
pub use libp2p_kad as kad;
73
73
#[ cfg( feature = "mdns" ) ]
74
- #[ cfg( not( any ( target_os = "emscripten" , target_os = "wasi" , target_os = "unknown" ) ) ) ]
74
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
75
75
#[ cfg_attr( docsrs, doc( cfg( feature = "mdns" ) ) ) ]
76
76
#[ doc( inline) ]
77
77
pub use libp2p_mdns as mdns;
@@ -94,7 +94,7 @@ pub use libp2p_plaintext as plaintext;
94
94
#[ doc( inline) ]
95
95
pub use libp2p_pnet as pnet;
96
96
#[ cfg( feature = "quic" ) ]
97
- #[ cfg( not( any ( target_os = "emscripten" , target_os = "wasi" , target_os = "unknown" ) ) ) ]
97
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
98
98
#[ doc( inline) ]
99
99
pub use libp2p_quic as quic;
100
100
#[ cfg( feature = "relay" ) ]
@@ -109,30 +109,30 @@ pub use libp2p_request_response as request_response;
109
109
#[ doc( inline) ]
110
110
pub use libp2p_swarm as swarm;
111
111
#[ cfg( feature = "tcp" ) ]
112
- #[ cfg( not( any ( target_os = "emscripten" , target_os = "wasi" , target_os = "unknown" ) ) ) ]
112
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
113
113
#[ cfg_attr( docsrs, doc( cfg( feature = "tcp" ) ) ) ]
114
114
#[ doc( inline) ]
115
115
pub use libp2p_tcp as tcp;
116
116
#[ cfg( feature = "tls" ) ]
117
117
#[ cfg_attr( docsrs, doc( cfg( feature = "tls" ) ) ) ]
118
- #[ cfg( not( any ( target_os = "emscripten" , target_os = "wasi" , target_os = "unknown" ) ) ) ]
118
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
119
119
#[ doc( inline) ]
120
120
pub use libp2p_tls as tls;
121
121
#[ cfg( feature = "uds" ) ]
122
122
#[ cfg_attr( docsrs, doc( cfg( feature = "uds" ) ) ) ]
123
- #[ cfg( not( any ( target_os = "emscripten" , target_os = "wasi" , target_os = "unknown" ) ) ) ]
123
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
124
124
#[ doc( inline) ]
125
125
pub use libp2p_uds as uds;
126
126
#[ cfg( feature = "wasm-ext" ) ]
127
127
#[ doc( inline) ]
128
128
pub use libp2p_wasm_ext as wasm_ext;
129
129
#[ cfg( feature = "webrtc" ) ]
130
130
#[ cfg_attr( docsrs, doc( cfg( feature = "webrtc" ) ) ) ]
131
- #[ cfg( not( any ( target_os = "emscripten" , target_os = "wasi" , target_os = "unknown" ) ) ) ]
131
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
132
132
#[ doc( inline) ]
133
133
pub use libp2p_webrtc as webrtc;
134
134
#[ cfg( feature = "websocket" ) ]
135
- #[ cfg( not( any ( target_os = "emscripten" , target_os = "wasi" , target_os = "unknown" ) ) ) ]
135
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
136
136
#[ doc( inline) ]
137
137
pub use libp2p_websocket as websocket;
138
138
#[ cfg( feature = "yamux" ) ]
@@ -168,7 +168,7 @@ pub use self::transport_ext::TransportExt;
168
168
/// > **Note**: This `Transport` is not suitable for production usage, as its implementation
169
169
/// > reserves the right to support additional protocols or remove deprecated protocols.
170
170
#[ cfg( all(
171
- not( any ( target_os = "emscripten" , target_os = "wasi" , target_os = "unknown" ) ) ,
171
+ not( target_arch = "wasm32" ) ,
172
172
any(
173
173
all( feature = "tcp-async-io" , feature = "dns-async-std" ) ,
174
174
all( feature = "tcp" , feature = "dns" , feature = "async-std" )
@@ -228,7 +228,7 @@ pub async fn development_transport(
228
228
/// > **Note**: This `Transport` is not suitable for production usage, as its implementation
229
229
/// > reserves the right to support additional protocols or remove deprecated protocols.
230
230
#[ cfg( all(
231
- not( any ( target_os = "emscripten" , target_os = "wasi" , target_os = "unknown" ) ) ,
231
+ not( target_arch = "wasm32" ) ,
232
232
any(
233
233
all( feature = "tcp-tokio" , feature = "dns-tokio" ) ,
234
234
all( feature = "tcp" , feature = "dns" , feature = "tokio" )
0 commit comments