Kefta
a simple attribute parser
Key Features
- derive macros for easily parsing structures
- built-in "decent" error messages
- build-in attribute parsing
- optional
synsupport
Feature Toggles
literal- literal parsingutil- pre-made types and utility traitssyn- syn support viaSyn<impl syn::Parse>
Examples
use ;
// derive `Attr` onto your struct
// parse in your derive-macro
// * this uses the syn crate and `syn` feature
You can use attributes like so
#[derive(Human)]
#[human(name="Jimmy", value=10, alive)]
#[human(jobs="foo", jobs="bar", jobs="baz")]
pub struct Jimmy;