diff --git a/Cargo.toml b/Cargo.toml index e29abea9c0d..da02d8a255b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,6 @@ unicode-segmentation = "1.0.1" strsim = { version = "0.6.0", optional = true } ansi_term = { version = "0.9.0", optional = true } term_size = { version = "0.2.2", optional = true } -libc = { version = "0.2.20", optional = true } yaml-rust = { version = "0.3.5", optional = true } clippy = { version = "~0.0.112", optional = true } atty = { version = "0.2.2", optional = true } @@ -36,7 +35,7 @@ lazy_static = "0.2" default = ["suggestions", "color", "wrap_help"] suggestions = ["strsim"] color = ["ansi_term", "atty"] -wrap_help = ["libc", "term_size"] +wrap_help = ["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) diff --git a/README.md b/README.md index 68984768410..7b232784912 100644 --- a/README.md +++ b/README.md @@ -539,8 +539,8 @@ Then run `cargo build` or `cargo update && cargo build` for your project. #### Features enabled by default * **"suggestions"**: Turns on the `Did you mean '--myoption'?` feature for when users make typos. (builds dependency `strsim`) -* **"color"**: Turns on colored error messages. This feature only works on non-Windows OSs. (builds dependency `ansi-term` and `libc`) -* **"wrap_help"**: Wraps the help at the actual terminal width when available, instead of 120 chracters. (builds dependency `term_size`, and `libc`) +* **"color"**: Turns on colored error messages. This feature only works on non-Windows OSs. (builds dependency `ansi-term`) +* **"wrap_help"**: Wraps the help at the actual terminal width when available, instead of 120 chracters. (builds dependency `term_size`) To disable these, add this to your `Cargo.toml`: diff --git a/src/lib.rs b/src/lib.rs index 173557d47c5..c39f232e9e7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -329,7 +329,7 @@ //! //! * **"suggestions"**: Turns on the `Did you mean '--myoption'?` feature for when users make typos. (builds dependency `strsim`) //! * **"color"**: Turns on colored error messages. This feature only works on non-Windows OSs. (builds dependency `ansi-term` and `atty`) -//! * **"wrap_help"**: Wraps the help at the actual terminal width when available, instead of 120 chracters. (builds dependency `term_size`, and `libc`) +//! * **"wrap_help"**: Wraps the help at the actual terminal width when available, instead of 120 chracters. (builds dependency `term_size`) //! //! To disable these, add this to your `Cargo.toml`: //! @@ -534,8 +534,6 @@ extern crate strsim; extern crate ansi_term; #[cfg(feature = "yaml")] extern crate yaml_rust; -#[cfg(feature = "wrap_help")] -extern crate libc; extern crate unicode_width; #[macro_use] extern crate bitflags;