(input: proc_macro::TokenStream)
| 22 | |
| 23 | #[proc_macro_derive(Lower, attributes(component))] |
| 24 | pub fn lower(input: proc_macro::TokenStream) -> proc_macro::TokenStream { |
| 25 | component::expand( |
| 26 | &component::LowerExpander, |
| 27 | &parse_macro_input!(input as DeriveInput), |
| 28 | ) |
| 29 | .unwrap_or_else(Error::into_compile_error) |
| 30 | .into() |
| 31 | } |
| 32 | |
| 33 | #[proc_macro_derive(ComponentType, attributes(component))] |
| 34 | pub fn component_type(input: proc_macro::TokenStream) -> proc_macro::TokenStream { |