| Crates.io | argv-lite-derive |
| lib.rs | argv-lite-derive |
| version | 0.1.0 |
| created_at | 2025-05-23 08:59:37.412345+00 |
| updated_at | 2025-05-23 08:59:37.412345+00 |
| description | A procedural macro for argv-lite, providing derive macros for argument parsing. |
| homepage | https://github.com/enterprise-search/argv-lite |
| repository | https://github.com/enterprise-search/argv-lite |
| max_upload_size | |
| id | 1686069 |
| size | 10,499 |
A procedural macro crate for argv-lite, providing derive macros for ergonomic command-line argument parsing.
syn and quoteargv-lite ecosystemAdd to your Cargo.toml:
[dependencies]
argv-lite = "0.1"
argv-lite-derive = "0.1"
Annotate your struct with the derive macro:
use argv_lite_derive::ArgvLite;
#[derive(ArgvLite)]
struct Args {
#[arg(short = 'v', long = "verbose")]
verbose: bool,
#[arg(short = 'o', long = "output")]
output: Option<String>,
}
See docs.rs/argv-lite-derive for full API documentation.
Licensed under either of:
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.