[package]
edition = "2021"
rust-version = "1.70"
name = "click-rs"
version = "1.0.2"
build = false
exclude = [
".idea/",
"docs/devel/",
"tests/parity/",
"tools/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust port of Python's Click library for creating command-line interfaces"
documentation = "https://docs.rs/click-rs"
readme = "README.md"
keywords = [
"cli",
"command-line",
"terminal",
"arguments",
]
categories = ["command-line-interface"]
license = "MIT"
repository = "https://github.com/mrsaraiva/click-rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["derive"]
derive = ["dep:click-derive"]
[lib]
name = "click"
path = "src/lib.rs"
[[example]]
name = "aliases"
path = "examples/aliases.rs"
[[example]]
name = "colors"
path = "examples/colors.rs"
[[example]]
name = "completion"
path = "examples/completion.rs"
[[example]]
name = "complex"
path = "examples/complex.rs"
[[example]]
name = "imagepipe"
path = "examples/imagepipe.rs"
[[example]]
name = "inout"
path = "examples/inout.rs"
[[example]]
name = "naval"
path = "examples/naval.rs"
[[example]]
name = "repo"
path = "examples/repo.rs"
[[example]]
name = "termui"
path = "examples/termui.rs"
[[example]]
name = "validation"
path = "examples/validation.rs"
[[test]]
name = "completion_tests"
path = "tests/completion_tests.rs"
[[test]]
name = "derive_tests"
path = "tests/derive_tests.rs"
[[test]]
name = "subcommand_help_tests"
path = "tests/subcommand_help_tests.rs"
[[test]]
name = "termui_tests"
path = "tests/termui_tests.rs"
[[test]]
name = "testing_tests"
path = "tests/testing_tests.rs"
[[test]]
name = "utils_tests"
path = "tests/utils_tests.rs"
[dependencies.chrono]
version = "0.4"
features = ["std"]
default-features = false
[dependencies.click-derive]
version = "1.0.0"
optional = true
[dependencies.crossterm]
version = "0.28"
[dependencies.encoding_rs]
version = "0.8"
[dependencies.os_pipe]
version = "1.2"
[dependencies.thiserror]
version = "2.0"
[dependencies.uuid]
version = "1.0"
features = [
"v4",
"std",
]
[dev-dependencies.click-derive]
version = "1.0.0"
[dev-dependencies.tempfile]
version = "3.0"
[target."cfg(unix)".dependencies.nix]
version = "0.31"
features = ["fs"]
[target."cfg(windows)".dependencies.windows-sys]
version = "0.52"
features = [
"Win32_Foundation",
"Win32_System_Console",
]