Open richardpringle opened 3 months ago
Turns out I found a way to solve this. I can either derive Zeroable
and Pod
, instead of NoUninit
... or bytemuck
can accept my PR:
https://github.com/Lokathor/bytemuck/pull/259
I think them accepting my PR is the cleaner solution as I don't think we need to be as strict as Pod
and Zeroable
There might be a better way to do this, but currently, all programs require
borsh
as a dependency and if they use state, they requirebytemuck
. If you don't supply either of those dependencies, the error messages from the compiler aren't super intuitive. I'm proposing that we do a check in the build-script.