#enums #tuple #struct #serde #proc-macro

macro serde-struct-tuple-enum-proc-macro

Procedural macro for deserializing an enum of structs from tuples

1 unstable release

0.1.0 Jan 1, 2025

#68 in #enum

Download history 141/week @ 2024-12-29 41/week @ 2025-01-05 24/week @ 2025-01-12 20/week @ 2025-01-19 5/week @ 2025-02-02

53 downloads per month
Used in 7 crates (via serde-struct-tuple-enum)

MIT license

11KB
217 lines

serde-struct-tuple-enum-proc-macro

Latest Version

serde-struct-tuple-proc-macro-enum is a utility crate for serde-struct-tuple-enum. It provides procedural macros to automatically derive serde's Serialize and Deserialize traits for enum types, where each variant of the enum if a struct that is encoded as a tuple of its fields (specifically using serde-struct-tuple).

Dependencies

~0.7–1.3MB
~29K SLoC