[package]
edition = "2021"
name = "clap-stdin"
version = "0.8.1"
authors = ["Mat Wood <thepacketgeek@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provides types for easily accepting Clap arguments from stdin and writing to stdout"
documentation = "https://docs.rs/clap-stdin"
readme = "README.md"
keywords = [
"clap",
"stdin",
"stdout",
]
categories = ["command-line-interface"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/thepacketgeek/clap-stdin"
[features]
default = []
test_bin = ["clap"]
test_bin_tokio = [
"clap",
"tokio",
]
tokio = ["dep:tokio"]
[lib]
name = "clap_stdin"
path = "src/lib.rs"
[[bin]]
name = "file_or_stdin_optional_arg"
path = "tests/fixtures/file_or_stdin_optional_arg.rs"
test = false
bench = false
required-features = ["test_bin"]
[[bin]]
name = "file_or_stdin_positional_arg"
path = "tests/fixtures/file_or_stdin_positional_arg.rs"
test = false
bench = false
required-features = ["test_bin"]
[[bin]]
name = "file_or_stdin_twice"
path = "tests/fixtures/file_or_stdin_twice.rs"
test = false
bench = false
required-features = ["test_bin"]
[[bin]]
name = "file_or_stdout_optional_arg"
path = "tests/fixtures/file_or_stdout_optional_arg.rs"
test = false
bench = false
required-features = ["test_bin"]
[[bin]]
name = "file_or_stdout_positional_arg"
path = "tests/fixtures/file_or_stdout_positional_arg.rs"
test = false
bench = false
required-features = ["test_bin"]
[[bin]]
name = "is_stdin"
path = "tests/fixtures/is_stdin.rs"
test = false
bench = false
required-features = ["test_bin"]
[[bin]]
name = "maybe_stdin_optional_arg"
path = "tests/fixtures/maybe_stdin_optional_arg.rs"
test = false
bench = false
required-features = ["test_bin"]
[[bin]]
name = "maybe_stdin_positional_arg"
path = "tests/fixtures/maybe_stdin_positional_arg.rs"
test = false
bench = false
required-features = ["test_bin"]
[[bin]]
name = "maybe_stdin_twice"
path = "tests/fixtures/maybe_stdin_twice.rs"
test = false
bench = false
required-features = ["test_bin"]
[[example]]
name = "cp"
path = "examples/cp.rs"
[[example]]
name = "parse_with_serde"
path = "examples/parse_with_serde.rs"
required-features = ["default"]
[[test]]
name = "tests"
path = "tests/tests.rs"
[dependencies.clap]
version = "4.5"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.47"
features = [
"fs",
"io-std",
"io-util",
]
optional = true
[dev-dependencies.anyhow]
version = "1.0"
[dev-dependencies.assert_cmd]
version = "2.1"
[dev-dependencies.clap]
version = "4.5"
features = ["derive"]
[dev-dependencies.predicates]
version = "3.1"
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.tempfile]
version = "3.20"
[dev-dependencies.tokio]
version = "1.47"
features = [
"rt",
"macros",
]