Checkpoint
This commit is contained in:
parent
1d491fcd78
commit
746f77bf7c
14 changed files with 226 additions and 250 deletions
20
crates/gpui2_macros/src/gpui2_macros.rs
Normal file
20
crates/gpui2_macros/src/gpui2_macros.rs
Normal file
|
@ -0,0 +1,20 @@
|
|||
use proc_macro::TokenStream;
|
||||
|
||||
mod derive_element;
|
||||
mod derive_into_element;
|
||||
mod styleable_helpers;
|
||||
|
||||
#[proc_macro]
|
||||
pub fn styleable_helpers(args: TokenStream) -> TokenStream {
|
||||
styleable_helpers::styleable_helpers(args)
|
||||
}
|
||||
|
||||
#[proc_macro_derive(Element, attributes(element_crate))]
|
||||
pub fn derive_element(input: TokenStream) -> TokenStream {
|
||||
derive_element::derive_element(input)
|
||||
}
|
||||
|
||||
#[proc_macro_derive(IntoElement, attributes(element_crate))]
|
||||
pub fn derive_into_element(input: TokenStream) -> TokenStream {
|
||||
derive_into_element::derive_into_element(input)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue