Skip to content

Commit

Permalink
Merge #152
Browse files Browse the repository at this point in the history
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 <jethro@fortanix.com>
  • Loading branch information
bors[bot] and Jethro Beekman committed Apr 6, 2021
2 parents 6bba90e + 153d192 commit 9f17a9c
Show file tree
Hide file tree
Showing 8 changed files with 367 additions and 243 deletions.
16 changes: 10 additions & 6 deletions .travis.yml
Expand Up @@ -11,22 +11,26 @@ os: linux
dist: xenial
addons:
apt:
sources:
- sourceline: "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-11 main"
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
packages:
- llvm-3.8-dev
- libclang-3.8-dev
- clang-3.8
- llvm-3.9-dev
- libclang-3.9-dev
- clang-3.9
- clang-11
- cmake
rust:
- stable
- beta
- nightly
- nightly-2019-07-01
- nightly-2021-03-25
env:
global:
- RUST_BACKTRACE=1
# Pinned to this particular nightly version because of core_io. This can be
# re-pinned whenever core_io is updated to the latest nightly.
- CORE_IO_NIGHTLY=nightly-2019-07-01
- LLVM_CONFIG_PATH=llvm-config-3.8
- CORE_IO_NIGHTLY=nightly-2021-03-25
- LLVM_CONFIG_PATH=llvm-config-3.9
script:
- ./ct.sh

0 comments on commit 9f17a9c

Please sign in to comment.