kefta 0.0.1

proc-macro for simplified attribute parsing
Documentation
1
2
3
4
5
6
7
8
9
10
#[macro_export]
/// parse an array of attributes
macro_rules! parse_attr {
    ($expr:expr => $type:ty) => {
        match kefta::AttrParse::parse_attrs::<$type>({ $expr }) {
            Ok(value) => value,
            Err(error) => return error.to_compile_error().into(),
        }
    };
}