ktest-macros 0.1.2

Procedural macros for the ktest testing framework
Documentation
1
2
3
4
5
6
7
8
9
mod macros;

/// `#[ktest]` attribute macro
#[proc_macro_attribute]
pub fn ktest(attr: proc_macro::TokenStream, item: proc_macro::TokenStream) -> proc_macro::TokenStream {
    // Due to Rust constraints, procedural macros must be defined in the root of the crate.
    // Therefore, we delegate the implementation to its interior `ktest` module.
    macros::ktest::ktest(attr, item)
}