zed/crates/gpui2_macros/src/gpui2_macros.rs

15 lines
337 B
Rust
Raw Normal View History

use proc_macro::TokenStream;
mod derive_element;
mod style_helpers;
#[proc_macro]
pub fn style_helpers(args: TokenStream) -> TokenStream {
style_helpers::style_helpers(args)
}
2023-10-12 16:18:35 +00:00
#[proc_macro_derive(Element, attributes(element))]
pub fn derive_element(input: TokenStream) -> TokenStream {
derive_element::derive_element(input)
}