aoc-zen-runner-macros 0.1.9

Macros for aoc-zen-runner.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use proc_macro2::Ident;
use syn::parse::Parse;

pub struct AocGeneratorArgs {
    pub display_slug: Ident,
}

impl Parse for AocGeneratorArgs {
    fn parse(input: syn::parse::ParseStream) -> syn::Result<Self> {
        let slug = input.parse::<Ident>()?;
        Ok(AocGeneratorArgs { display_slug: slug })
    }
}