[package]
edition = "2021"
rust-version = "1.82.0"
name = "claptrap"
version = "0.3.0"
authors = ["FujiApple <fujiapple852@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bring the power of Clap to shell scripts."
homepage = "https://github.com/fujiapple852/claptrap"
documentation = "https://github.com/fujiapple852/claptrap"
readme = "README.md"
keywords = [
"cli",
"clap",
"parse",
"arg",
"shell",
]
categories = ["command-line-utilities"]
license = "Apache-2.0"
repository = "https://github.com/fujiapple852/claptrap"
[[package.metadata.generate-rpm.assets]]
dest = "/usr/bin/claptrap"
mode = "755"
source = "target/release/claptrap"
[features]
default = ["schema"]
doc_gen = []
schema = ["schemars"]
[lib]
name = "claptrap"
path = "src/lib.rs"
[[bin]]
name = "claptrap"
path = "src/main.rs"
[[bin]]
name = "gen_api_docs"
path = "scripts/gen_api_docs.rs"
required-features = ["doc_gen"]
[[test]]
name = "examples"
path = "tests/examples.rs"
[[test]]
name = "schema"
path = "tests/schema.rs"
[[test]]
name = "script"
path = "tests/script.rs"
[[test]]
name = "shell"
path = "tests/shell.rs"
[[test]]
name = "types"
path = "tests/types.rs"
[dependencies.anstream]
version = "0.6.20"
[dependencies.anstyle]
version = "1.0.11"
[dependencies.anyhow]
version = "1.0.99"
[dependencies.clap]
version = "4.5.45"
features = [
"derive",
"string",
"cargo",
"wrap_help",
"usage",
"unstable-styles",
"color",
"suggestions",
"error-context",
"env",
]
[dependencies.clap-markdown]
version = "0.1.5"
[dependencies.clap_complete]
version = "4.5.57"
[dependencies.clap_mangen]
version = "0.2.29"
[dependencies.crc32fast]
version = "1.5.0"
[dependencies.indexmap]
version = "2.10.0"
features = ["serde"]
[dependencies.itertools]
version = "0.14.0"
[dependencies.minijinja]
version = "2.11.0"
[dependencies.regex]
version = "1.11.1"
[dependencies.schemars]
version = "1.0.1"
features = [
"derive",
"indexmap2",
]
optional = true
[dependencies.serde]
version = "1.0.219"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.142"
features = ["preserve_order"]
[dependencies.serde_yaml]
version = "=0.9.33"
features = []
[dependencies.toml]
version = "0.9.5"
features = ["preserve_order"]
[dev-dependencies.insta]
version = "1.43.1"
[dev-dependencies.tempfile]
version = "3.10.1"
[dev-dependencies.test-case]
version = "3.3.1"
[lints.clippy]
cast_possible_truncation = "allow"
map_unwrap_or = "allow"
missing_const_for_fn = "allow"
option_if_let_else = "allow"
struct_field_names = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1