kcl-derive-docs 0.2.148

A tool for generating documentation from Rust derive macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Clippy's style advice is definitely valuable, but not worth the trouble for
// automated enforcement.
#![allow(clippy::style)]

mod example_tests;

#[proc_macro_attribute]
pub fn for_each_example_test(_attr: proc_macro::TokenStream, item: proc_macro::TokenStream) -> proc_macro::TokenStream {
    example_tests::do_for_each_example_test(item.into()).into()
}

#[proc_macro_attribute]
pub fn for_all_example_test(_attr: proc_macro::TokenStream, item: proc_macro::TokenStream) -> proc_macro::TokenStream {
    example_tests::do_for_all_example_test(item.into()).into()
}