Skip to main content

noshell_macros/
lib.rs

1//! noshell Parser.
2
3#![deny(missing_docs)]
4
5use proc_macro::TokenStream;
6
7mod arg;
8mod attr;
9mod derive;
10mod ty;
11
12#[cfg(test)]
13mod tests;
14
15/// `Parser` derive macro.
16#[proc_macro_derive(Parser, attributes(arg))]
17pub fn derive_parser(item: TokenStream) -> TokenStream {
18    derive::run(item.into()).into()
19}