[package]
edition = "2024"
rust-version = "1.95"
name = "argx"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Expressive command-line parsing and configuration for Rust."
homepage = "https://github.com/selemis-com/argx"
documentation = "https://docs.rs/argx"
readme = "README.md"
keywords = [
"cli",
"configuration",
"schema",
]
categories = [
"command-line-interface",
"development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/selemis-com/argx"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"-Zunstable-options",
"--generate-link-to-definition",
"--show-type-layout",
]
[features]
default = ["derive"]
derive = ["dep:argx-derive"]
toml = [
"derive",
"dep:toml_edit",
]
[lib]
name = "argx"
path = "src/lib.rs"
[[example]]
name = "arguments"
path = "examples/arguments.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "commands"
path = "examples/commands.rs"
[[example]]
name = "complete"
path = "examples/complete.rs"
[[example]]
name = "completions"
path = "examples/completions.rs"
[[example]]
name = "configuration"
path = "examples/configuration.rs"
[[example]]
name = "schema"
path = "examples/schema.rs"
[[test]]
name = "argv"
path = "tests/argv.rs"
[[test]]
name = "config"
path = "tests/config.rs"
[[test]]
name = "examples"
path = "tests/examples.rs"
[[test]]
name = "facade"
path = "tests/facade.rs"
[[test]]
name = "parser"
path = "tests/parser.rs"
[[test]]
name = "process"
path = "tests/process.rs"
[[test]]
name = "schema"
path = "tests/schema.rs"
[[test]]
name = "ui"
path = "tests/ui.rs"
[dependencies.argx-derive]
version = "0.2.0"
optional = true
[dependencies.schemars]
version = "1.2.2"
features = ["preserve_order"]
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.149"
[dependencies.thiserror]
version = "2.0.20"
[dependencies.toml_edit]
version = "0.25.13"
features = [
"display",
"parse",
"serde",
]
optional = true
default-features = false
[dev-dependencies.snapbox]
version = "1.2.2"
features = [
"cmd",
"examples",
]
[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
borrow_as_ptr = "warn"
branches_sharing_code = "warn"
cargo_common_metadata = "warn"
clear_with_drain = "warn"
cloned_instead_of_copied = "warn"
collection_is_never_read = "warn"
dbg_macro = "warn"
derive_partial_eq_without_eq = "warn"
doc_link_with_quotes = "warn"
doc_markdown = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
flat_map_option = "warn"
future_not_send = "warn"
if_not_else = "warn"
if_then_some_else_none = "warn"
implicit_clone = "warn"
implicit_hasher = "warn"
imprecise_flops = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_with_drain = "warn"
iter_without_into_iter = "warn"
large_futures = "warn"
large_stack_frames = "warn"
manual_assert = "warn"
manual_is_power_of_two = "warn"
manual_is_variant_and = "warn"
manual_string_new = "warn"
match_same_arms = "warn"
missing_const_for_fn = "warn"
missing_docs_in_private_items = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
mutex_integer = "warn"
naive_bytecount = "warn"
needless_bitwise_bool = "warn"
needless_continue = "warn"
needless_for_each = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
needless_type_cast = "warn"
option_as_ref_cloned = "warn"
option_if_let_else = "warn"
or_fun_call = "warn"
path_buf_push_overwrite = "warn"
pub_without_shorthand = "warn"
read_zero_byte_vec = "warn"
redundant_clone = "warn"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
redundant_test_prefix = "warn"
redundant_type_annotations = "warn"
ref_as_ptr = "warn"
ref_binding_to_reference = "warn"
ref_option = "warn"
ref_option_ref = "warn"
ref_patterns = "warn"
same_name_method = "warn"
semicolon_inside_block = "warn"
significant_drop_tightening = "warn"
single_char_pattern = "warn"
str_to_string = "warn"
string_lit_as_bytes = "warn"
string_lit_chars_any = "warn"
suboptimal_flops = "warn"
suspicious_operation_groupings = "warn"
tests_outside_test_module = "warn"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
transmute_undefined_repr = "warn"
trivial_regex = "warn"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
undocumented_unsafe_blocks = "warn"
uninhabited_references = "warn"
unnecessary_safety_comment = "warn"
unnecessary_self_imports = "warn"
unnecessary_struct_initialization = "warn"
unnested_or_patterns = "warn"
unreadable_literal = "warn"
unseparated_literal_suffix = "warn"
unused_peekable = "warn"
unused_result_ok = "warn"
unused_rounding = "warn"
use_debug = "warn"
use_self = "warn"
used_underscore_binding = "warn"
used_underscore_items = "warn"
useless_let_if_seq = "warn"
verbose_bit_mask = "warn"
verbose_file_reads = "warn"
volatile_composites = "warn"
while_float = "warn"
wildcard_dependencies = "warn"
wildcard_imports = "warn"
with_capacity_zero = "warn"
zero_sized_map_values = "warn"
[lints.rust]
closure_returning_async_block = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
missing_unsafe_on_extern = "warn"
non_ascii_idents = "warn"
redundant_imports = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"
unused_must_use = "deny"
unused_qualifications = "warn"
variant_size_differences = "warn"
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rustdoc]
all = "warn"