-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust_enums missing #430
Comments
Again, this should be easy to do, we have options to make some enum variants constant already (see #393), so it'd be a matter of expanding that codepath. |
Ah, interesting. I just tried that out a little bit and noticed that returning |
Yeah, I can believe so. It doesn't make a lot of sense doing that though (bitfield enums already generate constants), so probably we should just ignore that |
I would like my C enums to be defined as individual constants instead of a Rust enum. C enum values can hold any integer which breaks when they're interpreted as Rust enums across FFI boundaries.
bitfield_enum
is not sufficient since this introduces a wrapper type. Using bindgen 0.20 would introduce a public API change for my -sys crates.The text was updated successfully, but these errors were encountered: