mirror of
https://github.com/clap-rs/clap
synced 2025-01-18 23:53:54 +00:00
Remove direct dependency on libc
It's not actually used anymore anywhere.
This commit is contained in:
parent
7b08a0a583
commit
f4939ad560
3 changed files with 4 additions and 7 deletions
|
@ -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)
|
||||
|
|
|
@ -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`:
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue