feat(torn-api): added optional strum feature

This commit is contained in:
Pyrite 2025-05-26 16:53:51 +02:00
parent f0bf96c170
commit dea314681c
Signed by: pyrite
GPG key ID: 7F1BA9170CD35D15
4 changed files with 31 additions and 5 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "torn-api-codegen"
authors = ["Pyrit [2111649]"]
version = "0.4.0"
version = "0.5.0"
edition = "2021"
description = "Contains the v2 torn API model descriptions and codegen for the bindings"
license-file = { workspace = true }

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),*