roadblk 0.2.0

Validator integration
Documentation
#[cfg(test)]
mod tests {
    use roadblk_expand::expand;
    use syn::{parse_quote, DeriveInput};

    #[test]
    fn test_expand() -> syn::Result<()> {
        let input: DeriveInput = parse_quote! {
            #[derive(MetaParser)]
            pub enum Constraint {
                Length(LitInt, LitInt),

                Range(LitInt, LitInt),

                #[name("validator")]
                Validator,

                #[name("validator")]
                SpecialValidator(Path),

                Regex(LitStr),

                Enum(Path),
            }
        };
        let token_stream = expand(input).unwrap().to_string();
        println!("{token_stream}");
        Ok(())
    }
}