ktest_macros/lib.rs
1mod macros;
2
3/// `#[ktest]` attribute macro
4#[proc_macro_attribute]
5pub fn ktest(attr: proc_macro::TokenStream, item: proc_macro::TokenStream) -> proc_macro::TokenStream {
6 // Due to Rust constraints, procedural macros must be defined in the root of the crate.
7 // Therefore, we delegate the implementation to its interior `ktest` module.
8 macros::ktest::ktest(attr, item)
9}