Skip to content

Commit

Permalink
Remove ansi_term dependency for clap
Browse files Browse the repository at this point in the history
The [clap](https://crates.io/crates/clap) crate used for argument
parsing uses the `ansi_term` crate for colorized output, but colorized
output is disabled for Windows. However, `ansi_term` is still compiled
and used on Windows unless the build is configured to disable the
"color" feature as discussed here:
clap-rs/clap#1155 (comment)

The manifest is updated to disable the color feature following these
instructions:
https://github.com/kbknapp/clap-rs#optional-dependencies--features
  • Loading branch information
volks73 committed Apr 15, 2018
1 parent ad4b008 commit 1e799a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "cargo-wix"
description = "Build Windows installers using the Wix Toolset"
version = "0.0.3"
version = "0.0.4"
authors = ["Christopher Field <cfield2@gmail.com>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/volks73/cargo-wix"
Expand All @@ -20,7 +20,6 @@ name = "cargo_wix"

[dependencies]
chrono = "0.4"
clap = "2.30"
env_logger = "0.5.7"
log = "0.4"
mustache = "0.9"
Expand All @@ -29,3 +28,8 @@ termcolor = "0.3.6"
toml = "0.4"
uuid = { version = "0.5", features = ["v4"] }

[dependencies.clap]
version = "2.31"
default-features = false
features = ["suggestions", "vec_map"]

0 comments on commit 1e799a8

Please sign in to comment.