clap_schema 0.1.0

JSON Schema generation for Clap.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.95"
name = "clap_schema"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "JSON Schema generation for Clap."
homepage = "https://github.com/selemis-com/clap_schema"
documentation = "https://docs.rs/clap_schema"
readme = "README.md"
keywords = [
    "clap",
    "agents",
    "cli",
    "schema",
    "json-schema",
]
categories = [
    "command-line-interface",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/selemis-com/clap_schema"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "-Zunstable-options",
    "--generate-link-to-definition",
    "--show-type-layout",
]

[lib]
name = "clap_schema"
path = "src/lib.rs"

[[example]]
name = "application_extension"
path = "examples/application_extension.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "builder_api"
path = "examples/builder_api.rs"

[[example]]
name = "command_identity"
path = "examples/command_identity.rs"

[[example]]
name = "schema_subcommand"
path = "examples/schema_subcommand.rs"

[[test]]
name = "application"
path = "tests/application.rs"

[[test]]
name = "cli"
path = "tests/cli.rs"

[[test]]
name = "contract"
path = "tests/contract.rs"

[[test]]
name = "handlers"
path = "tests/handlers.rs"

[[test]]
name = "ui"
path = "tests/ui.rs"

[dependencies.clap]
version = "4.6.6"
features = [
    "std",
    "usage",
]
default-features = false

[dependencies.clap_schema_derive]
version = "0.1.0"

[dependencies.schemars]
version = "1.2.2"

[dependencies.serde]
version = "1.0.229"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.151"

[dependencies.thiserror]
version = "2.0.20"

[dev-dependencies.clap]
version = "4.6.6"
features = [
    "std",
    "derive",
]
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"
fn_params_excessive_bools = "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"
struct_excessive_bools = "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"