gauge-mac-derive 0.1.0

A derive proc-macro library
Documentation
1
2
3
4
5
6
7
8
9
10
11
mod builder;

use proc_macro::TokenStream;
use syn::{parse_macro_input, DeriveInput};

#[proc_macro_derive(GaugeMacCommand, attributes(reg))]
pub fn derive_gauge_mac_command_builder(input: TokenStream) -> TokenStream {
    let input = parse_macro_input!(input as DeriveInput);

    builder::generate(input).into()
}