| 1 | [package] |
| 2 | name = "clap_builder" |
| 3 | version = "4.5.37" |
| 4 | description = "A simple to use, efficient, and full-featured Command Line Argument Parser" |
| 5 | categories = ["command-line-interface" ] |
| 6 | keywords = [ |
| 7 | "argument" , |
| 8 | "cli" , |
| 9 | "arg" , |
| 10 | "parser" , |
| 11 | "parse" |
| 12 | ] |
| 13 | repository.workspace = true |
| 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" , "unstable-ext" ] # 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-ext = [] |
| 56 | unstable-styles = ["color" ] # deprecated |
| 57 | |
| 58 | [lib] |
| 59 | bench = false |
| 60 | |
| 61 | [dependencies] |
| 62 | clap_lex = { path = "../clap_lex" , version = "0.7.4" } |
| 63 | unicase = { version = "2.6.0" , optional = true } |
| 64 | strsim = { version = "0.11.0" , optional = true } |
| 65 | anstream = { version = "0.6.7" , optional = true } |
| 66 | anstyle = "1.0.8" |
| 67 | terminal_size = { version = "0.4.0" , optional = true } |
| 68 | backtrace = { version = "0.3.73" , optional = true } |
| 69 | unicode-width = { version = "0.2.0" , optional = true } |
| 70 | |
| 71 | [dev-dependencies] |
| 72 | static_assertions = "1.1.0" |
| 73 | unic-emoji-char = "0.9.0" |
| 74 | color-print = "0.3.6" |
| 75 | |
| 76 | [lints] |
| 77 | workspace = true |
| 78 | |