feat(torn-api): added optional strum feature

This commit is contained in:
pyrite 2025-05-27 19:27:58 +02:00
parent 56e64470de
commit 8bfa1b8ac3
Signed by: pyrite
GPG key ID: 7F1BA9170CD35D15
4 changed files with 31 additions and 5 deletions

View file

@ -309,6 +309,7 @@ impl Enum {
Some(quote! {
#desc
#[derive(Debug, Clone, PartialEq, #(#derives),*)]
#[cfg_attr(feature = "strum", derive(strum::EnumIs, strum::EnumTryAs))]
#serde_attr
pub enum #name {
#(#variants),*