Skip to content

update to bindgen 0.51.0 #72

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
wants to merge 1 commit into from
Closed

Conversation

haraldh
Copy link

@haraldh haraldh commented Oct 25, 2019

This patch lets us compile mbedtls-sys with recent clang versions.

It still has a hack calling "sed" in it, which fixes some of the enum
generated names, but it is a good starting point.

@haraldh
Copy link
Author

haraldh commented Oct 25, 2019

Got rid of the sed

This patch lets us compile mbedtls-sys with recent clang versions.
@haraldh
Copy link
Author

haraldh commented Oct 25, 2019

doh.. didn't see #14 ... could have saved me a lot of time 😿

@haraldh haraldh changed the title mbedtls-sys: generate code with a recent version of bindgen update to bindgen 0.51.0 Oct 25, 2019
@jack-fortanix
Copy link
Contributor

LGTM. @jethrogb ?

@haraldh
Copy link
Author

haraldh commented Nov 12, 2019

@jack-fortanix @jethrogb
friendly ping

@dvdplm dvdplm mentioned this pull request May 6, 2020
@ekse ekse mentioned this pull request Nov 12, 2020
@jethrogb jethrogb mentioned this pull request Mar 11, 2021
1 task
@jethrogb
Copy link
Member

Final PR: #152

bors bot added a commit that referenced this pull request Apr 6, 2021
152: Update bindgen r=raoulstrackx a=jethrogb

I took some time this week to make the necessary bindgen changes (rust-lang/rust-bindgen#2004 rust-lang/rust-bindgen#2006 rust-lang/rust-bindgen#2007). This PR updates the bindgen build to use that.

Breaking changes:
* unnamed types are renamed
* C-unions are now actual unions
  * [x] the field accessor functions that used to exist are easy enough to add back
* bitfields are done differently now
* some fn-ptrs are now unsafe
* some fns and fn-ptrs now take const pointers as arguments
* havege.c and timing.c are now not compiled on non-unix platforms, i.e. SGX (probably wasn't working properly anyway)

Fixes #5 #14 #61 #72 #88 #121

Co-authored-by: Jethro Beekman <[email protected]>
@jethrogb
Copy link
Member

jethrogb commented Apr 6, 2021

Fixed in #152

@jethrogb jethrogb closed this Apr 6, 2021
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

Successfully merging this pull request may close these issues.

3 participants