You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the code generator can only generate u8 bitflags for enums. This is a problem because when migrating from .witx to .wit, we cannot port any enum flags. Is repr u16, repr u32, etc. going to be supported or how should this be ported?
The text was updated successfully, but these errors were encountered:
It's not intended that support will be added for this at this time. The representation of enums is defined with the canonical abi in the component-model repository and isn't something that wit-bindgen is at the liberty of modifying.
The representation of an enum is also not always u8. If there are more than 256 variants then u16 is chosen to fit the variant. More details can be found in that repository.
Currently the code generator can only generate
u8
bitflags for enums. This is a problem because when migrating from .witx to .wit, we cannot port any enum flags. Isrepr u16
,repr u32
, etc. going to be supported or how should this be ported?The text was updated successfully, but these errors were encountered: