From 1e799a85bf75015b96306eb26c46a43c6216eb20 Mon Sep 17 00:00:00 2001 From: Christopher Field Date: Sun, 15 Apr 2018 17:14:39 -0400 Subject: [PATCH] Remove ansi_term dependency for clap 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: https://github.com/kbknapp/clap-rs/issues/1155#issuecomment-365044859 The manifest is updated to disable the color feature following these instructions: https://github.com/kbknapp/clap-rs#optional-dependencies--features --- Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3ceff3a..40cad86 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] license = "MIT/Apache-2.0" repository = "https://github.com/volks73/cargo-wix" @@ -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" @@ -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"] +