1#![allow(unused_macros)]
2
3macro_rules! cfg_wasm32 {
4 ($($item:item)*) => {
5 $(
6 #[cfg(target_arch = "wasm32")]
7 $item
8 )*
9 };
10}
11
12macro_rules! cfg_not_wasm32 {
13 ($($item:item)*) => {
14 $(
15 #[cfg(not(target_arch = "wasm32"))]
16 $item
17 )*
18 }
19}
20
21macro_rules! cfg_smol {
22 ($($item:item)*) => {
23 $(
24 #[cfg(feature = "smol")]
25 $item
26 )*
27 };
28}
29
30macro_rules! cfg_tokio {
31 ($($item:item)*) => {
32 $(
33 #[cfg(feature = "tokio")]
34 $item
35 )*
36 };
37}
38
39macro_rules! cfg_wasm_timer {
40 ($($item:item)*) => {
41 $(
42 #[cfg(feature = "wasm-timer")]
43 $item
44 )*
45 };
46}
47
48macro_rules! cfg_fluvio_wasm_timer {
49 ($($item:item)*) => {
50 $(
51 #[cfg(feature = "fluvio-wasm-timer")]
52 $item
53 )*
54 };
55}
56
57macro_rules! cfg_futures_timer {
58 ($($item:item)*) => {
59 $(
60 #[cfg(feature = "futures-timer")]
61 $item
62 )*
63 };
64}