Internal implementation crate for clap_reverse_derive.
This crate contains the parsing, validation, and code generation logic for the ClapReverse derive macro.
Components
- [
AsCommand] – trait defining how a struct is turned into a [std::process::Command]. - [
StructAttributes] – parses and holds struct-level attributes (display,binary,prefix,delimiter). - [
FieldAttributes] – parses and holds field-level attributes (prefix,name,delimiter,binary,transparent,flag). - [
ClapReverseGenerator] – core generator that validates attributes and expands the derive macro into trait impls.
Notes
- All procedural macro entry points live in
clap_reverse_derive; this crate only provides the machinery. - Errors during parsing or validation are reported as compile errors via
synandproc_macro2.