Custom derives on generated bitfield helper struct #2816
Unanswered
software-dov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a bindgen cli question regarding structs that have bitfields.
Let's say I have a C struct that uses bitfields, e.g.
The generated rust code defines a helper struct that looks like this:
Is there any way to add custom derives to the helper struct? Adding
__BindgenBitfieldUnit
towith-derive-custom-struct
doesn't seem to do anything, no matter how I tweak the regex to describe the template.I would absolutely believe that this is not possible, in which case I would stick with a manually defined struct definition in rust.
Beta Was this translation helpful? Give feedback.
All reactions