http-streams-core 0.1.0

Framework-neutral HTTP body streaming formats: JSON/CSV/Protobuf/Arrow encode and decode
Documentation
//! Feature-gate macros, mirroring the ones in the two dependent crates so that the `docsrs`
//! badges and the `#[cfg]` shape stay recognisable across all three.

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

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

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

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

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