You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
482 B
Rust
22 lines
482 B
Rust
#![feature(proc_macro_diagnostic)]
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
mod derive;
|
|
mod template;
|
|
|
|
#[proc_macro]
|
|
pub fn template(input: TokenStream) -> TokenStream {
|
|
template::invoke(input)
|
|
}
|
|
|
|
#[proc_macro_derive(NativeComponent)]
|
|
pub fn native_component(input: TokenStream) -> TokenStream {
|
|
derive::native_component::invoke(input)
|
|
}
|
|
|
|
#[proc_macro_derive(CustomComponent)]
|
|
pub fn custom_component(input: TokenStream) -> TokenStream {
|
|
derive::custom_component::invoke(input)
|
|
}
|