commit | 3d80d6690ff2ce7af665fb53bcbb1966bee4efa3 | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Sun Oct 07 05:17:49 2018 -0400 |
committer | GitHub <noreply@github.com> | Sun Oct 07 05:17:49 2018 -0400 |
tree | 02cee415f635aaae57f190db18d1ab22c267b000 | |
parent | 35a349dd76cb5ba9470de30bb2eb51ea152a9640 [diff] | |
parent | fdde42dfc3cd5a783d3ded9b0d3a52ecd32db72c [diff] |
Auto merge of #1413 - emilio:be-tests, r=emilio Skip bitfield unit tests on big-endian platforms. Fixes #1412.
bindgen
impl period
has been started! Join us at Gitter.im.
bindgen
automatically generates Rust FFI bindings to C (and some C++) libraries.
For example, given the C header doggo.h
:
typedef struct Doggo { int many; char wow; } Doggo; void eleven_out_of_ten_majestic_af(Doggo* pupper);
bindgen
produces Rust FFI code allowing you to call into the doggo
library's functions and use its types:
/* automatically generated by rust-bindgen */ #[repr(C)] pub struct Doggo { pub many: ::std::os::raw::c_int, pub wow: ::std::os::raw::c_char, } extern "C" { pub fn eleven_out_of_ten_majestic_af(pupper: *mut Doggo); }
📚 Read the bindgen
users guide here! 📚
API reference documentation is on docs.rs