Skip to main content

futures_codec2/
cfg.rs

1macro_rules! cfg_json {
2    ($($item:item)*) => {
3        $(
4            #[cfg(feature = "json")]
5            #[cfg_attr(docsrs, doc(cfg(feature = "json")))]
6            $item
7        )*
8    }
9}
10
11macro_rules! cfg_cbor {
12    ($($item:item)*) => {
13        $(
14            #[cfg(feature = "cbor")]
15            #[cfg_attr(docsrs, doc(cfg(feature = "cbor")))]
16            $item
17        )*
18    }
19}