Robbepop / enum-tag

Proc. macro to generate C-like `enum` tags.
MIT License
13 stars 0 forks source link

Generated tag should have the same repr as the input #6

Open RReverser opened 1 year ago

RReverser commented 1 year ago

I noticed from the README example that repr(u8) is currently not propagated to the generated tag enum. This can make it more difficult to reconcile the tagged and untagged enums with each other, especially when repr is important e.g. for FFI.

Robbepop commented 1 year ago

Yes, that's probably right. I happily accept pull requests if you are interested to contribute. :)

RReverser commented 1 year ago

As soon as I finish with my current side projects... 😅 (which is probably a while)