Feature for serde_repr
Using serde_repr for (de)serializing C style enums currently doesn't work. The generated enums are string unions.
Is it possible to add a feature for serde_repr so it (de)serializes the enums as numbers?
Hmm, I'm not quite sure how I would even go about doing this. The way this library works is that when you use the TypeDef derive macro, it assumes you're using the standard Serialize/Deserialize derive macros on the struct as well, and looks for #[serde(...)] attributes in the struct to guide the format of the serialization. I'm not sure how I would even detect if you're using Serialize_repr/Deserialize_repr in my macro; it might not be possible. I might have to mimic serde's pattern and provide a distinct TypeDef_repr macro which similarly assumes that you're using Serialize_repr/Deserialize_repr on the type.
I worked around the issue by using vectors in the api instead, so i don't personally need it anymore. Still sounds like it would be a good thing to have though if you feel like making it.