clap/Cargo.toml

82 lines
2 KiB
TOML
Raw Normal View History

2015-02-25 13:37:25 +00:00
[package]
name = "clap"
Issues rollup (#637) * feat: adds App::with_defaults to automatically use crate_authors! and crate_version! macros One can now use ```rust let a = App::with_defaults("My Program"); // same as let a2 = App::new("My Program") .version(crate_version!()) .author(crate_authors!()); ``` Closes #600 * imp(YAML Errors): vastly improves error messages when using YAML When errors are made while developing, the panic error messages have been improved instead of relying on the default panic message which is extremely unhelpful. Closes #574 * imp(Completions): uses standard conventions for bash completion files, namely '{bin}.bash-completion' Closes #567 * imp(Help): automatically moves help text to the next line and wraps when term width is determined to be too small, or help text is too long Now `clap` will check if it should automatically place long help messages on the next line after the flag/option. This is determined by checking to see if the space taken by flag/option plus spaces and values doesn't leave enough room for the entirety of the help message, with the single exception of of if the flag/option/spaces/values is less than 25% of the width. Closes #597 * tests: updates help tests to new forced new line rules * fix(Groups): fixes some usage strings that contain both args in groups and ones that conflict with each other Args that conflict *and* are in a group will now only display in the group and not in the usage string itself. Closes #616 * chore: updates dep graph Closes #633 * chore: clippy run * style: changes debug header to match other Rust projects * chore: increase version
2016-08-28 03:42:31 +00:00
version = "2.11.0"
2015-02-25 13:37:25 +00:00
authors = ["Kevin K. <kbknapp@gmail.com>"]
2016-05-10 00:27:10 +00:00
exclude = ["examples/*", "clap-test/*", "tests/*", "benches/*", "*.png", "clap-perf/*", "*.dot"]
repository = "https://github.com/kbknapp/clap-rs.git"
documentation = "https://docs.rs/clap/"
homepage = "https://docs.rs/crate/clap/"
readme = "README.md"
2015-05-17 22:26:03 +00:00
license = "MIT"
keywords = ["argument", "command", "arg", "parser", "parse"]
description = """
A simple to use, efficient, and full featured Command Line Argument Parser
"""
[dependencies]
2016-07-26 00:56:13 +00:00
bitflags = "~0.7"
2016-03-04 18:42:22 +00:00
vec_map = "~0.6"
2016-04-08 18:40:38 +00:00
libc = { version = "~0.2.9", optional = true }
2016-09-05 21:04:32 +00:00
ansi_term = { version = "~0.9.0", optional = true }
strsim = { version = "~0.5.1", optional = true }
2016-04-08 18:40:38 +00:00
yaml-rust = { version = "~0.3.2", optional = true }
clippy = { version = "~0.0.88", optional = true }
2016-08-25 02:04:19 +00:00
unicode-width = "~0.1.3"
unicode-segmentation = "~0.1.2"
2016-09-05 18:54:52 +00:00
term_size = { version = "~0.2.0", optional = true }
[dev-dependencies]
regex = "~0.1.69"
[features]
default = ["suggestions", "color", "wrap_help"]
2015-10-19 12:00:13 +00:00
suggestions = ["strsim"]
color = ["ansi_term", "libc"]
2015-10-29 05:36:12 +00:00
yaml = ["yaml-rust"]
2016-08-25 02:04:19 +00:00
wrap_help = ["libc", "term_size"]
2015-10-29 05:36:12 +00:00
lints = ["clippy", "nightly"]
nightly = [] # for building with nightly and unstable features
unstable = [] # for building with unstable features on stable Rust
2015-10-29 05:36:12 +00:00
debug = [] # for building with debug messages
travis = ["lints", "nightly"] # for building with travis-cargo
[profile.release]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
# codegen-units ignored with lto=true
[profile.dev]
opt-level = 0
debug = true
rpath = false
lto = false
debug-assertions = true
codegen-units = 4
[profile.test]
opt-level = 1
debug = true
rpath = false
lto = false
debug-assertions = true
codegen-units = 2
[profile.bench]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
[profile.doc]
opt-level = 0
debug = true
rpath = false
lto = false
debug-assertions = true
codegen-units = 4