argv-lite-derive

Crates.ioargv-lite-derive
lib.rsargv-lite-derive
version0.1.0
created_at2025-05-23 08:59:37.412345+00
updated_at2025-05-23 08:59:37.412345+00
descriptionA procedural macro for argv-lite, providing derive macros for argument parsing.
homepagehttps://github.com/enterprise-search/argv-lite
repositoryhttps://github.com/enterprise-search/argv-lite
max_upload_size
id1686069
size10,499
Max Z (oxnz)

documentation

https://docs.rs/argv-lite-derive

README

argv-lite-derive

Crates.io Documentation License

A procedural macro crate for argv-lite, providing derive macros for ergonomic command-line argument parsing.

Features

  • Derive macros for struct-based CLI argument parsing
  • Built on top of syn and quote
  • Designed for use with the argv-lite ecosystem

Usage

Add 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>,
}

Documentation

See docs.rs/argv-lite-derive for full API documentation.

License

Licensed under either of:

Contribution

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Commit count: 0

cargo fmt