Skip to content

Commit

Permalink
feat: feature-gate clap-derive support
Browse files Browse the repository at this point in the history
  • Loading branch information
svenrademakers committed Feb 23, 2025
1 parent 2680f89 commit 47b88f3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
21 changes: 20 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bmcd"
version = "2.3.5"
version = "2.3.6"
edition = "2021"
license = "Apache-2.0"
rust-version = "1.75.0"
Expand Down Expand Up @@ -79,4 +79,5 @@ strip = true
[features]
stubbed = []
vendored = ["openssl/vendored"]
clap_derive = ["clap/derive"]

1 change: 1 addition & 0 deletions src/board_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ impl fmt::Debug for BoardInfo {
}
}

#[cfg_attr(feature = "clap_derive", derive(ValueEnum))]
#[derive(Clone, PartialEq, Eq)]
pub enum BoardInfoAttribute {
Reserved,
Expand Down

0 comments on commit 47b88f3

Please sign in to comment.