Skip to main content

jade_derive/
lib.rs

1#![doc = include_str!("../README.md")]
2
3use proc_macro::TokenStream;
4
5mod accumulate;
6mod authorize;
7mod refine;
8
9/// Export the is_authorized interface
10///
11/// TODO: replace the function body directly
12#[proc_macro_attribute]
13pub fn is_authorized(args: TokenStream, input: TokenStream) -> TokenStream {
14    authorize::is_authorized(args, input)
15}
16
17/// Export the refine interface
18#[proc_macro_attribute]
19pub fn refine(args: TokenStream, input: TokenStream) -> TokenStream {
20    refine::refine(args, input)
21}
22
23/// Export the accumulate interface
24#[proc_macro_attribute]
25pub fn accumulate(args: TokenStream, input: TokenStream) -> TokenStream {
26    accumulate::accumulate(args, input)
27}