1[package]
2name = "clap_builder"
3version = "4.4.18"
4description = "A simple to use, efficient, and full-featured Command Line Argument Parser"
5repository = "https://github.com/clap-rs/clap"
6categories = ["command-line-interface"]
7keywords = [
8 "argument",
9 "cli",
10 "arg",
11 "parser",
12 "parse"
13]
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"] # 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-styles = ["color"]
56
57[lib]
58bench = false
59
60[dependencies]
61clap_lex = { path = "../clap_lex", version = "0.6.0" }
62unicase = { version = "2.6.0", optional = true }
63strsim = { version = "0.10.0", optional = true }
64anstream = { version = "0.6.7", optional = true }
65anstyle = "1.0.0"
66terminal_size = { version = "0.3.0", optional = true }
67backtrace = { version = "0.3.67", optional = true }
68unicode-width = { version = "0.1.9", optional = true }
69
70[dev-dependencies]
71static_assertions = "1.1.0"
72unic-emoji-char = "0.9.0"
73color-print = "0.3.5"
74