Skip to content

Conversation

@jethrogb
Copy link
Member

@jethrogb jethrogb commented Mar 11, 2021

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
    • 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

@jethrogb jethrogb changed the base branch from master to acruceru/fix-cert-issue March 16, 2021 13:23
@jethrogb jethrogb force-pushed the update-bindgen branch 2 times, most recently from aad2e26 to 42e0865 Compare March 16, 2021 13:32
@AdrianCX AdrianCX force-pushed the acruceru/fix-cert-issue branch from be93f8f to 446e243 Compare March 23, 2021 09:40
Base automatically changed from acruceru/fix-cert-issue to master March 23, 2021 13:29
@jethrogb jethrogb changed the title [WIP] Update bindgen Update bindgen Mar 23, 2021
@jethrogb jethrogb requested a review from raoulstrackx March 23, 2021 14:04
@jethrogb jethrogb mentioned this pull request Mar 24, 2021
@jethrogb jethrogb force-pushed the update-bindgen branch 2 times, most recently from 0eac043 to 91bcf5e Compare March 25, 2021 11:43
@jethrogb

This comment has been minimized.

@jethrogb jethrogb force-pushed the update-bindgen branch 2 times, most recently from 7da9574 to d0c7504 Compare April 6, 2021 06:41
@jethrogb
Copy link
Member Author

jethrogb commented Apr 6, 2021

This is ready for review now

@raoulstrackx
Copy link
Contributor

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 6, 2021

Build succeeded:

  • continuous-integration/travis-ci/push

@bors bors bot merged commit 9f17a9c into master Apr 6, 2021
shuwens added a commit to shuwens/rust-mbedtls that referenced this pull request Dec 1, 2021
@Taowyoo Taowyoo deleted the update-bindgen branch October 20, 2023 16:27
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.

Upgrade bindgen

2 participants