mangadex_api/
macros.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
macro_rules! cfg_legacy_auth{
    ($($item:item)*) => {
        $(
            #[cfg(feature = "legacy-auth")]
            #[cfg_attr(docsrs, doc(cfg(feature = "legacy-auth")))]
            $item
        )*
    }
}

macro_rules! cfg_utils{
    ($($item:item)*) => {
        $(
            #[cfg(feature = "utils")]
            #[cfg_attr(docsrs, doc(cfg(feature = "utils")))]
            $item
        )*
    }
}

macro_rules! cfg_oauth{
    ($($item:item)*) => {
        $(
            #[cfg(feature = "oauth")]
            #[cfg_attr(docsrs, doc(cfg(feature = "oauth")))]
            $item
        )*
    }
}

macro_rules! cfg_custom_list_v2{
    ($($item:item)*) => {
        $(
            #[cfg(feature = "custom_list_v2")]
            #[cfg_attr(docsrs, doc(cfg(feature = "custom_list_v2")))]
            $item
        )*
    }
}