Skip to content

Commit

Permalink
Make cli an optional feature in the top-level crate
Browse files Browse the repository at this point in the history
  • Loading branch information
sharplet committed Mar 10, 2018
1 parent 394b7b4 commit e6b2585
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ authors = [
"Mike Piccolo <mfpiccolo@gmail.com>",
"Alice Maz <alice@alicemaz.com>",
"Sean Griffin <sean@seantheprogrammer.com>",
"Adam Sharp <adam@sharplet.me>",
]
readme = "README.md"
keywords = ["environment", "env", "dotenv", "settings", "config"]
Expand All @@ -21,12 +22,16 @@ derive-error-chain = "0.11.0"
error-chain = { version = "0.11.0", default-features = false }
regex = "0.2.1"

clap = { version = "2", optional = true }

[dev-dependencies]
tempdir = "0.3.0"

[features]
backtrace = ["error-chain/backtrace"]
cli = ["clap"]
default = ["backtrace"]

[workspace]
members = ["dotenv_cli"]
[[bin]]
name = "dotenv"
required-features = ["cli"]
12 changes: 0 additions & 12 deletions dotenv_cli/Cargo.toml

This file was deleted.

File renamed without changes.

0 comments on commit e6b2585

Please sign in to comment.