[package]
edition = "2021"
rust-version = "1.60"
name = "rust-args-parser"
version = "2.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tiny, fast, callback-based CLI argument parser for Rust"
homepage = "https://github.com/milchinskiy/rust-args-parser"
documentation = "https://docs.rs/rust-args-parser"
readme = "README.md"
keywords = [
"cli",
"command-line",
"args",
"parser",
]
categories = ["command-line-interface"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/milchinskiy/rust-args-parser"
[features]
color = []
default = [
"help",
"suggest",
"color",
]
help = []
suggest = []
[lib]
name = "rust_args_parser"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "env_defaults"
path = "examples/env_defaults.rs"
[[example]]
name = "git"
path = "examples/git.rs"
[[example]]
name = "subcommands"
path = "examples/subcommands.rs"
[[example]]
name = "try_handlers"
path = "examples/try_handlers.rs"
[[test]]
name = "builtins"
path = "tests/builtins.rs"
[[test]]
name = "common"
path = "tests/common.rs"
[[test]]
name = "complex"
path = "tests/complex.rs"
[[test]]
name = "env_defaults"
path = "tests/env_defaults.rs"
[[test]]
name = "flags_values"
path = "tests/flags_values.rs"
[[test]]
name = "groups"
path = "tests/groups.rs"
[[test]]
name = "handler_variants"
path = "tests/handler_variants.rs"
[[test]]
name = "help"
path = "tests/help.rs"
[[test]]
name = "positionals"
path = "tests/positionals.rs"
[[test]]
name = "subcommands"
path = "tests/subcommands.rs"
[[test]]
name = "suggest"
path = "tests/suggest.rs"
[[test]]
name = "utils"
path = "tests/utils.rs"
[[test]]
name = "validators"
path = "tests/validators.rs"
[dependencies]
[dev-dependencies.pretty_assertions]
version = "1"
[dev-dependencies.proptest]
version = "1"
[lints.clippy]
cargo = "warn"
complexity = "warn"
correctness = "warn"
nursery = "warn"
pedantic = "warn"
perf = "warn"
redundant_pub_crate = "warn"
style = "warn"
[lints.clippy.missing_const_for_fn]
level = "allow"
priority = 1