Expand description
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 astd::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.
Structs§
- Clap
Reverse Generator - Generator for the
ClapReversederive macro. - Field
Attributes - Parsed attributes for a single struct field.
- Struct
Attributes - Parsed attributes for a struct.
Traits§
- AsCommand
- Converts a Rust struct into a
std::process::Command.