From 06ea3c73539352ffafe24655cf050f429c3175db Mon Sep 17 00:00:00 2001 From: Apika Luca Date: Sun, 22 Dec 2024 18:05:58 -0700 Subject: [PATCH] Fix features definition The current `cli` feature is using an implicit `clap` feature, and with 2 features is confusing to know the meaning of that intermediate feature. The fix is in the [docs](https://doc.rust-lang.org/cargo/reference/features.html#optional-dependencies). > If you specify the optional dependency with the dep: prefix anywhere in the [features] table, that disables the implicit feature. --- dotenv/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotenv/Cargo.toml b/dotenv/Cargo.toml index 4c2fb5a..addb03b 100644 --- a/dotenv/Cargo.toml +++ b/dotenv/Cargo.toml @@ -29,4 +29,4 @@ clap = { version = "2", optional = true } tempfile = "3.0.0" [features] -cli = ["clap"] +cli = ["dep:clap"]