crusto/vespid/macros/src/lib.rs

20 lines
390 B
Rust
Raw Normal View History

2024-12-09 11:55:19 +00:00
mod component;
mod view;
2024-12-05 21:05:22 +00:00
use proc_macro::TokenStream;
#[proc_macro]
2024-12-06 14:24:37 +00:00
pub fn view(tokens: TokenStream) -> TokenStream {
2024-12-09 11:55:19 +00:00
view::process(tokens, false)
2024-12-05 21:05:22 +00:00
}
#[proc_macro]
2024-12-06 14:24:37 +00:00
pub fn view_docs(tokens: TokenStream) -> TokenStream {
2024-12-09 11:55:19 +00:00
view::process(tokens, true)
2024-12-05 21:05:22 +00:00
}
#[proc_macro_attribute]
2024-12-09 11:55:19 +00:00
pub fn component(_args: TokenStream, input: TokenStream) -> TokenStream {
component::process(input)
2024-12-05 21:05:22 +00:00
}