test_query_data/
lib.rs

1macro_rules! cfg_websocket {
2    ($($item:item)*) => {
3        $(
4            #[cfg(feature = "websocket")]
5            #[cfg_attr(docsrs, doc(cfg(feature = "websocket")))]
6            $item
7        )*
8    }
9}
10
11macro_rules! cfg_http {
12    ($($item:item)*) => {
13        $(
14            #[cfg(feature = "http")]
15            #[cfg_attr(docsrs, doc(cfg(feature = "http")))]
16            $item
17        )*
18    }
19}
20
21cfg_http! {
22    pub mod http;
23}
24
25cfg_websocket! {
26    pub mod websocket;
27}
28
29pub fn add(left: usize, right: usize) -> usize {
30    left + right
31}