quick_impl/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![doc = include_str!("../README.md")]

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

mod attributes;
mod components;
mod config;
mod expand;
mod idents;
mod tokens;
mod utils;

#[proc_macro_derive(QuickImpl, attributes(quick_impl))]
pub fn derive_quick_impl(input: TokenStream) -> TokenStream {
    let input = parse_macro_input!(input as DeriveInput);
    expand::derive(&input).into()
}