clap_reverse_impl 0.1.0

Internal subcrate for `clap_reverse` crate
Documentation
  • Coverage
  • 100%
    18 out of 18 items documented0 out of 0 items with examples
  • Size
  • Source code size: 30.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.5 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 19s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • h4-h

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.