Skip to content

Can't convert unions for use with stable Rust #431

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

Closed
jethrogb opened this issue Jan 24, 2017 · 2 comments
Closed

Can't convert unions for use with stable Rust #431

jethrogb opened this issue Jan 24, 2017 · 2 comments

Comments

@jethrogb
Copy link
Contributor

bindgen 0.19 converted C unions to Rust structs of appropriate size. bindgen 0.20 converts C unions to Rust unions, which I support in general, except that the generated code no longer works on stable Rust.

Bindgen should support generating stable Rust bindings for all C code.

@emilio
Copy link
Contributor

emilio commented Jan 24, 2017

We have this option (see --no-unstable-rust), though I agree this should probably be the default.

@jethrogb
Copy link
Contributor Author

Whoops, missed that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants