-
Notifications
You must be signed in to change notification settings - Fork 144
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
add #[repr(transparent)] #187
Conversation
Thanks for the PR @flier! It looks like we'll have to bump our minimum supported Rust version to |
I think this is a reasonable change and it would help me avoid boilerplate w/ FFI stuff. I don't think an MSRV bump is needed, we can just check the version in the build.rs like we do for @KodrAus does that sound reasonable? @flier I'm happy to take this over if you don't have time. |
Hi @josephlr I have added a |
Hi @flier, can you update the MR? thanks |
Thanks for your patience on this one @flier. Wow I really let this sit for a long time! 1.28.0 is now really quite old so I think we should be comfortable just bumping to it if we haven't already and avoid needing to add feature gates. I was wondering whether If you'd like to update this PR to just unconditionally add the |
In #240 we bumped all the way up to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @flier! This looks good to me.
thanks! release time? :) |
This breaks at least the crates nix and rusqlite, because they both use #[repr(C)] on "enum structs" |
also wgpu-types and naga, which already added
|
Thanks for the reports everyone 👍 I've gone ahead and yanked |
add
#[repr(transparent)]
for the the FFI layout, replace #184.