mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 14:54:15 +00:00
chore: adds term_size as an optional dep
This commit is contained in:
parent
554083ffc5
commit
0246960bdc
2 changed files with 4 additions and 1 deletions
|
@ -29,6 +29,7 @@ yaml-rust = { version = "0.3.5", optional = true }
|
|||
clippy = { version = "~0.0.166", optional = true }
|
||||
atty = { version = "0.2.2", optional = true }
|
||||
vec_map = { version = "0.8", optional = true }
|
||||
term_size = { version = "0.3.0", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
regex = "0.2"
|
||||
|
@ -39,7 +40,7 @@ version-sync = "0.3"
|
|||
default = ["suggestions", "color", "vec_map"]
|
||||
suggestions = ["strsim"]
|
||||
color = ["ansi_term", "atty"]
|
||||
wrap_help = ["textwrap/term_size"]
|
||||
wrap_help = ["term_size", "textwrap/term_size"]
|
||||
yaml = ["yaml-rust"]
|
||||
unstable = [] # for building with unstable clap features (doesn't require nightly Rust) (currently none)
|
||||
nightly = [] # for building with unstable Rust features (currently none)
|
||||
|
|
|
@ -544,6 +544,8 @@ extern crate unicode_width;
|
|||
extern crate bitflags;
|
||||
#[cfg(feature = "vec_map")]
|
||||
extern crate vec_map;
|
||||
#[cfg(feature = "wrap_help")]
|
||||
extern crate term_size;
|
||||
extern crate textwrap;
|
||||
#[cfg(feature = "color")]
|
||||
extern crate atty;
|
||||
|
|
Loading…
Reference in a new issue