summaryrefslogtreecommitdiffstats
path: root/vendor/serde_json/src/features_check/mod.rs
blob: d12032cef8620935502b2f38426d1007474ceb46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Shows a user-friendly compiler error on incompatible selected features.

#[allow(unused_macros)]
macro_rules! hide_from_rustfmt {
    ($mod:item) => {
        $mod
    };
}

#[cfg(not(any(feature = "std", feature = "alloc")))]
hide_from_rustfmt! {
    mod error;
}