commit | 231bce8ba3022bff0aed72ca3f33ca29f5f8de64 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Tue Jun 25 18:53:06 2019 +0200 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Mon Jul 01 23:57:40 2019 +0200 |
tree | b1c397c37dd4696125ccb5e341cc95d1b041e202 | |
parent | dbe5bab3e8aec87051b91537c71f47f8bcbccb78 [diff] |
Bump bindgen version. NOTE: For $REASONS (see https://github.com/rust-lang/rust-bindgen/issues/1587), this is not the actual commit that is tagged on the release.
bindgen
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