1[package]
2name = "clap_builder"
3version = "4.5.37"
4description = "A simple to use, efficient, and full-featured Command Line Argument Parser"
5categories = ["command-line-interface"]
6keywords = [
7 "argument",
8 "cli",
9 "arg",
10 "parser",
11 "parse"
12]
13repository.workspace = true
14license.workspace = true
15edition.workspace = true
16rust-version.workspace = true
17include.workspace = true
18
19[package.metadata.docs.rs]
20features = ["unstable-doc"]
21rustdoc-args = ["--cfg", "docsrs"]
22cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
23
24[package.metadata.playground]
25features = ["unstable-doc"]
26
27[package.metadata.release]
28shared-version = true
29dependent-version = "upgrade"
30tag-name = "v{{version}}"
31
32[features]
33default = ["std", "color", "help", "usage", "error-context", "suggestions"]
34debug = ["dep:backtrace"] # Enables debug messages
35unstable-doc = ["cargo", "wrap_help", "env", "unicode", "string", "unstable-ext"] # for docs.rs
36
37# Used in default
38std = ["anstyle/std"] # support for no_std in a backwards-compatible way
39color = ["dep:anstream"]
40help = []
41usage = []
42error-context = []
43suggestions = ["dep:strsim", "error-context"]
44
45# Optional
46deprecated = [] # Guided experience to prepare for next breaking release (at different stages of development, this may become default)
47cargo = [] # Disable if you're not using Cargo, enables Cargo-env-var-dependent macros
48wrap_help = ["help", "dep:terminal_size"]
49env = [] # Use environment variables during arg parsing
50unicode = ["dep:unicode-width", "dep:unicase"] # Support for unicode characters in arguments and help messages
51string = [] # Allow runtime generated strings
52
53# In-work features
54unstable-v5 = ["deprecated"]
55unstable-ext = []
56unstable-styles = ["color"] # deprecated
57
58[lib]
59bench = false
60
61[dependencies]
62clap_lex = { path = "../clap_lex", version = "0.7.4" }
63unicase = { version = "2.6.0", optional = true }
64strsim = { version = "0.11.0", optional = true }
65anstream = { version = "0.6.7", optional = true }
66anstyle = "1.0.8"
67terminal_size = { version = "0.4.0", optional = true }
68backtrace = { version = "0.3.73", optional = true }
69unicode-width = { version = "0.2.0", optional = true }
70
71[dev-dependencies]
72static_assertions = "1.1.0"
73unic-emoji-char = "0.9.0"
74color-print = "0.3.6"
75
76[lints]
77workspace = true
78