1macro_rules! cfg_not_wasm32 {
2 ($($item:item)*) => {
3 $(
4 #[cfg(not(target_arch = "wasm32"))]
5 $item
6 )*
7 }
8}
9
10macro_rules! cfg_wasm32 {
11 ($($item:item)*) => {
12 $(
13 #[cfg(target_arch = "wasm32")]
14 $item
15 )*
16 }
17}
18
19#[allow(unused_macros)] macro_rules! cfg_either_rustls_or_native_tls {
21 ($($item:item)*) => {
22 $(
23 #[cfg(any(
24 all(feature = "rustls", not(feature = "native-tls")),
25 all(feature = "native-tls", not(feature = "rustls"))
26 ))]
27 #[cfg_attr(docsrs, doc(cfg(any(
28 all(feature = "rustls", not(feature = "native-tls")),
29 all(feature = "native-tls", not(feature = "rustls"))
30 ))))]
31 $item
32 )*
33 }
34}
35
36macro_rules! cfg_unsecured {
37 ($($item:item)*) => {
38 $(
39 #[cfg(feature = "unsecured")]
40 #[cfg_attr(docsrs, doc(cfg(feature = "unsecured")))]
41 $item
42 )*
43 }
44}