rustfoundry 4.2.0

A Rust service rustfoundry library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// NOTE: don't complain about unused macro for feature combinations that don't use it.
#[allow(unused_macros)]
macro_rules! feature_use {
    ( $cfg:meta, { $( $tokens:tt )+ } ) => {
        // NOTE: a trick to apply attribute to all the tokens in a group without
        // introducing a new block or scope: we apply the attribute
        // to a macro call that expand to those tokens instead.
        #[$cfg]
        $crate::utils::feature_use!(@tokens $($tokens)*);
    };

    ( @tokens $( $tokens:tt )* ) => { $( $tokens )* };
}

// NOTE: don't complain about unused macro for feature combinations that don't use it.
#[allow(unused_imports)]
pub(crate) use feature_use;