Aleph-Alpha / ts-rs

Generate TypeScript bindings from Rust types
MIT License
1.15k stars 115 forks source link

bug: Regression Empty Struct Enum Variants with serde tag attribute #369

Open newcomertv opened 6 days ago

newcomertv commented 6 days ago

Describe the bug Attempting to derive TS for an enum containing empty structs as well as the serde tag attribute fails.

This bug is a regression from v9.1

Expected behavior The code should compile

Version v10.0

Additional context Not Applicable

gustavo-shigueo commented 6 days ago

Hello @newcomertv, can you provide us with a code sample to help us reproduce the issue?