Skip to main content

Crate clap_reverse_impl

Crate clap_reverse_impl 

Source
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 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 syn and proc_macro2.

Structs§

ClapReverseGenerator
Generator for the ClapReverse derive macro.
FieldAttributes
Parsed attributes for a single struct field.
StructAttributes
Parsed attributes for a struct.

Traits§

AsCommand
Converts a Rust struct into a std::process::Command.