Skip to content

Commit

Permalink
[esp-metadata] Make clap dependency optional (#2055)
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev authored Sep 2, 2024
1 parent 5802227 commit 671003a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion esp-metadata/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
anyhow = "1.0.86"
clap = { version = "4.5.16", features = ["derive"] }
clap = { version = "4.5.16", features = ["derive"], optional = true }
basic-toml = "0.1.9"
lazy_static = "1.5.0"
serde = { version = "1.0.209", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion esp-metadata/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ pub enum Cores {
strum::EnumIter,
strum::EnumString,
strum::AsRefStr,
clap::ValueEnum,
)]
#[cfg_attr(feature = "clap", derive(clap::ValueEnum))]
#[serde(rename_all = "kebab-case")]
#[strum(serialize_all = "kebab-case")]
pub enum Chip {
Expand Down
2 changes: 1 addition & 1 deletion xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ semver = { version = "1.0.23", features = ["serde"] }
serde = { version = "1.0.203", features = ["derive"] }
strum = { version = "0.26.2", features = ["derive"] }
toml_edit = "0.22.13"
esp-metadata = { path = "../esp-metadata" }
esp-metadata = { path = "../esp-metadata", features = ["clap"] }

0 comments on commit 671003a

Please sign in to comment.