From 59df32814bffb9c7bef9f72261ae747034b76104 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 4 Mar 2021 10:52:52 -0800 Subject: [PATCH] tool: Don't depend on `clap` when without default features --- tool/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tool/Cargo.toml b/tool/Cargo.toml index cedd909..2f315e6 100644 --- a/tool/Cargo.toml +++ b/tool/Cargo.toml @@ -13,17 +13,17 @@ name = "ectool" [[bin]] name = "system76_ectool" -required-features = ["std", "hidapi"] +required-features = ["std", "hidapi", "clap"] [dependencies] -clap = "2" +clap = { version = "2", optional = true } libc = { version = "0.2", optional = true } hidapi = { version = "1.2", default-features = false, features = ["linux-static-hidraw"], optional = true } redox_hwio = { version = "0.1.3", optional = true } downcast-rs = { version = "1.2.0", default-features = false } [features] -default = ["std", "hidapi"] +default = ["std", "hidapi", "clap"] std = ["libc", "downcast-rs/std"] [package.metadata.docs.rs]