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