Add derive macro for IntoAnyElement
This commit is contained in:
parent
927278e20d
commit
315744ec20
4 changed files with 79 additions and 9 deletions
|
@ -1,6 +1,7 @@
|
|||
use proc_macro::TokenStream;
|
||||
|
||||
mod derive_element;
|
||||
mod derive_into_any_element;
|
||||
mod style_helpers;
|
||||
mod test;
|
||||
|
||||
|
@ -14,6 +15,11 @@ pub fn derive_element(input: TokenStream) -> TokenStream {
|
|||
derive_element::derive_element(input)
|
||||
}
|
||||
|
||||
#[proc_macro_derive(IntoAnyElement, attributes(element))]
|
||||
pub fn derive_into_any_element(input: TokenStream) -> TokenStream {
|
||||
derive_into_any_element::derive_into_any_element(input)
|
||||
}
|
||||
|
||||
#[proc_macro_attribute]
|
||||
pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
|
||||
test::test(args, function)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue