chore: adds term_size as an optional dep

This commit is contained in:
Kevin K 2017-10-26 09:26:10 -04:00
parent 554083ffc5
commit 0246960bdc
No known key found for this signature in database
GPG key ID: 17218E4B3692F01A
2 changed files with 4 additions and 1 deletions

View file

@ -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)

View file

@ -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;