tracing_forest/
cfg.rs

1#[doc(hidden)]
2#[macro_export]
3macro_rules! cfg_tokio {
4    ($($item:item)*) => {
5        $(
6            #[cfg(feature = "tokio")]
7            #[cfg_attr(docsrs, doc(cfg(feature = "tokio")))]
8            $item
9        )*
10    }
11}
12
13#[doc(hidden)]
14#[macro_export]
15macro_rules! cfg_serde {
16    ($($item:item)*) => {
17        $(
18            #[cfg(feature = "serde")]
19            #[cfg_attr(docsrs, doc(cfg(feature = "serde")))]
20            $item
21        )*
22    }
23}
24
25#[doc(hidden)]
26#[macro_export]
27macro_rules! cfg_uuid {
28    ($($item:item)*) => {
29        $(
30            #[cfg(feature = "uuid")]
31            #[cfg_attr(docsrs, doc(cfg(feature = "uuid")))]
32            $item
33        )*
34    }
35}
36
37#[doc(hidden)]
38#[macro_export]
39macro_rules! cfg_chrono {
40    ($($item:item)*) => {
41        $(
42            #[cfg(feature = "chrono")]
43            #[cfg_attr(docsrs, doc(cfg(feature = "chrono")))]
44            $item
45        )*
46    }
47}