-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
93 lines (81 loc) · 2.21 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[package]
name = "clap-stdin"
version = "0.5.1"
edition = "2021"
authors = ["Mat Wood <[email protected]>"]
description = "Provides a type for easily accepting Clap arguments from stdin"
categories = ["command-line-interface"]
keywords = ["clap", "stdin"]
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/clap-stdin"
readme = "README.md"
repository = "https://github.com/thepacketgeek/clap-stdin"
[features]
default = []
tokio = ["dep:tokio"]
# This feature is used for testing with the bins below, since they are linked with deps and not dev-deps
test_bin = ["clap"]
test_bin_tokio = ["clap", "tokio"]
[dependencies]
thiserror = "1.0"
clap = { version = "4.5", features = ["derive"], optional = true }
tokio = { version = "1.37", features = [
"fs",
"io-std",
"io-util",
], optional = true }
[dev-dependencies]
anyhow = "1.0"
assert_cmd = "2.0"
predicates = "3.1"
clap = { version = "4.5", features = ["derive"] }
tempfile = "3.10"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.37", features = ["rt", "macros"] }
[[example]]
name = "parse_with_serde"
required-features = ["default"]
# These bins are only used for testing
[[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_optional_arg"
path = "tests/fixtures/maybe_stdin_optional_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"]
[[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_optional_arg"
path = "tests/fixtures/file_or_stdin_optional_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 = "is_stdin"
path = "tests/fixtures/is_stdin.rs"
test = false
bench = false
required-features = ["test_bin"]