From fce2ded925db8da4c33ce19100be9e436628d7d2 Mon Sep 17 00:00:00 2001 From: h1alexbel Date: Mon, 24 Jun 2024 10:48:53 +0300 Subject: [PATCH] feat(#44): features, opt clap --- cli/Cargo.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 1208f733..d0ce6d81 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -33,7 +33,14 @@ assert_cmd = "2.0.14" [dependencies] anyhow = "1.0.86" -clap = { version = "4.5.7", features = ["derive"] } +clap = { version = "4.5.7", optional = true, features = ["derive", "string"] } +clap_complete = { version = "4.5.1", optional = true } +clap_mangen = { version = "0.2.20", optional = true } +clap_complete_nushell = { version = "4.5.1", optional = true } server = { path = "../server" } tokio = { version = "1.0.0", features = ["rt", "rt-multi-thread", "macros"] } log = "0.4.21" + +[features] +default = ["cli"] +cli = ["clap", "clap_complete", "clap_mangen", "clap_complete_nushell"]