refact: overhaul arg parsing

This commit is contained in:
steven-omaha
2023-05-23 17:28:51 +02:00
parent 79c9e51e8c
commit a4639a1c3a
13 changed files with 222 additions and 258 deletions
-8
View File
@@ -21,7 +21,6 @@ Procedural macros for `pacdef`.
missing_docs
)]
mod action;
mod register;
use proc_macro::TokenStream;
@@ -32,10 +31,3 @@ use proc_macro::TokenStream;
pub fn register(input: TokenStream) -> TokenStream {
register::register(input)
}
/// Derive public constants from each variant of the enum, such that the name of the constant is
/// the name of the variant in all caps, and the value is the name of the variant in lowercase.
#[proc_macro_derive(Action)]
pub fn action(input: TokenStream) -> TokenStream {
action::action(input)
}