1
2
3
4
5
6
7
8
9
10
11
extern crate proc_macro;
mod renderer;

#[proc_macro]
pub fn merkle_tree_apply_fn_deep(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
    if input.is_empty() {
        panic!("`merkle_tree_apply_fn_deep` macro takes arguments");
    }

    renderer::MerkleTreeFuncApplyDeep::new(input.into()).render()
}