
Makefile for formatting and linting Workspace for subcrates. Moved crates to subdir and moved subcrate configs to workspace.*
14 lines
325 B
Rust
14 lines
325 B
Rust
extern crate proc_macro;
|
|
use {
|
|
proc_macro::TokenStream,
|
|
syn::{parse_macro_input, DeriveInput},
|
|
};
|
|
|
|
mod derive;
|
|
|
|
#[proc_macro_derive(IntoResponse)]
|
|
pub fn into_response_derive(input: TokenStream) -> TokenStream {
|
|
let input = parse_macro_input!(input as DeriveInput);
|
|
derive::into_response_derive_impl(input)
|
|
}
|