aboutsummaryrefslogblamecommitdiffstats
path: root/askama_derive/src/lib.rs
blob: b41fa6ac53595bf89d4fe0df778f6c1438e410a2 (plain) (tree)
1
2
3
4
5
6
7
8
9
                       
                                   
                         
 
                            
 

                                                           
                                                       
 
#![forbid(unsafe_code)]
#![deny(elided_lifetimes_in_paths)]
#![deny(unreachable_pub)]

use proc_macro::TokenStream;

#[proc_macro_derive(Template, attributes(template))]
pub fn derive_template(input: TokenStream) -> TokenStream {
    askama_shared::derive_template(input.into()).into()
}