Open mahkoh opened 1 year ago
So far it is quite a rare case, so I would rather not complicate the code-base. If you need it, feel free to just implement borsh traits explicitly.
I will keep this issue open for several months to collect further feedback and concrete use-cases if it turns out to be popular (I must admit, I doubt it is going to be the case)
@dj8yfo I see several PR referring to this issue. Was it resolved afterall?
I have a usecase where the number of enum variants is not bounded. Is support for more than 256 enum variants going to be added to borsh?
An enum attribute such as
#[borsh(repr = u32)]
should be sufficient.