WIP: Trying to find a composable approach to styling that plays nice with layout engine

This commit is contained in:
Nathan Sobo 2023-08-18 20:08:29 -06:00
parent eec39dc23c
commit 76993f6b57
5 changed files with 254 additions and 0 deletions

View file

@ -2,8 +2,14 @@ use proc_macro::TokenStream;
mod derive_element;
mod derive_into_element;
mod styleable_trait;
mod tailwind_lengths;
#[proc_macro]
pub fn styleable_trait(args: TokenStream) -> TokenStream {
styleable_trait::styleable_trait(args)
}
#[proc_macro_derive(Element, attributes(element_crate))]
pub fn derive_element(input: TokenStream) -> TokenStream {
derive_element::derive_element(input)