From 8395360417ae38684e43a2a653b98bc854208521 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 3 Oct 2022 08:59:59 -0500 Subject: [PATCH] fix: Hide clap_derive This was a bug that this wasn't done before and improves the `cargo add` behavior. --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aca3ef17dac..cf045f0d050 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,7 +62,7 @@ default = [ "error-context", "suggestions", ] -debug = ["clap_derive/debug", "dep:backtrace"] # Enables debug messages +debug = ["clap_derive?/debug", "dep:backtrace"] # Enables debug messages unstable-doc = ["derive", "cargo", "wrap_help", "env", "unicode", "string", "unstable-replace", "unstable-grouped"] # for docs.rs # Used in default @@ -75,7 +75,7 @@ suggestions = ["dep:strsim", "error-context"] # Optional deprecated = ["clap_derive?/deprecated"] # Guided experience to prepare for next breaking release (at different stages of development, this may become default) -derive = ["clap_derive", "dep:once_cell"] +derive = ["dep:clap_derive", "dep:once_cell"] cargo = ["dep:once_cell"] # Disable if you're not using Cargo, enables Cargo-env-var-dependent macros wrap_help = ["help", "dep:terminal_size"] env = [] # Use environment variables during arg parsing