forked from sigoden/argc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
80 lines (73 loc) · 1.91 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
[package]
name = "argc"
version = "1.20.1"
edition = "2021"
authors = ["sigoden <[email protected]>"]
description = "A bash cli framework, also a bash-based command runner"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/sigoden/argc"
repository = "https://github.com/sigoden/argc"
autotests = false
categories = ["command-line-utilities", "development-tools"]
keywords = ["cli", "bash", "runner", "arg", "parser"]
[features]
default = ["application"]
# Feature required for argc the application. Should be disabled when depending on
# argc as a library.
application = [
"native-runtime",
"eval-bash",
"build",
"mangen",
"completions",
"compgen",
"export",
"wrap-help",
# deps
"num_cpus",
"threadpool",
"base64",
"path-absolutize"
]
native-runtime = ["which"]
eval = []
eval-bash = ["eval"]
build = []
mangen = ["roff"]
completions = []
compgen = ["dirs", "natord"]
export = ["serde_json", "indexmap/serde"]
wrap-help = ["textwrap"]
[dependencies]
anyhow = "1"
convert_case = "0.6"
indexmap = { version = "2.1" }
nom = "7.1"
either = "1.8"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["preserve_order"], optional = true }
which = { version = "6.0", optional = true }
shell-words = "1.1"
textwrap = { version = "0.16", optional = true }
dirs = { version = "5.0", optional = true }
num_cpus = { version = "1.16", optional = true }
threadpool = { version = "1.8", optional = true }
base64 = { version = "0.22", optional = true }
natord = { version = "1.0", optional = true }
roff = { version = "0.2", optional = true }
path-absolutize = { version = "3.1.1", optional = true }
[dev-dependencies]
insta = "1.30"
assert_cmd = "2"
assert_fs = "1"
rstest = "0.22"
predicates = "3"
[target.'cfg(unix)'.dev-dependencies]
libc = "0.2"
[profile.release]
lto = true
strip = true
opt-level = "z"
[[test]]
name = "integration"
path = "tests/tests.rs"