mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Add new derive macros ValueEnumDisplay and ValueEnumFromStr which can be used to derive 'Display' and 'FromStr' for enums implementing 'clap::ValueEnum'. It helps in reducing boilerplate code and keep things in sync. Assisted-by: IBM Bob:1.0.4 Signed-off-by: Marc Hartmayer <marc@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
18 lines
340 B
TOML
18 lines
340 B
TOML
[package]
|
|
name = "utils_macros"
|
|
version = "0.12.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
|
|
[dependencies]
|
|
syn = { version = "2.0", features = ["full", "extra-traits"] }
|
|
quote = "1.0"
|
|
proc-macro2 = "1.0"
|
|
|
|
[dev-dependencies]
|
|
clap = { version = "4.6", features = ["derive"] }
|