getargs-derive
Rust · Proc macros · CLI · no_std · 2026 - present
Procedural macros for embedded Rust command-line interfaces, with allocation-free parsing and compile-time help generation.
Overview
Rust procedural macros for declaring command-line parsers using Clap-like syntax while targeting no_std. Parsing and help text generation are designed to work without heap allocation. Code and examples.
Engineering approach
Derive macros describe commands and options in Rust structs and generate parsers at compile time. The trade-off is Clap-like ergonomics without imposing an allocator on embedded binaries.
Scope and limitations
Designed as a reusable library independent of one application. Refer to the upstream repository for current APIs, examples, platform constraints and supported versions.