tag | 2464dfd4fa2076bafd890b5b607aa892ac6b9096 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Fri Jul 28 03:21:31 2017 +0200 |
object | 0e39721b6c72b574026a0802792c4e95f0d83e68 |
v0.29.0
commit | 0e39721b6c72b574026a0802792c4e95f0d83e68 | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Thu Jul 27 19:23:18 2017 -0500 |
committer | GitHub <noreply@github.com> | Thu Jul 27 19:23:18 2017 -0500 |
tree | d0a788cf8d0236621cd6eaaef25ba1c41397e370 | |
parent | 0fab51e501f45727169516f605de31e7e1d19a62 [diff] | |
parent | 05b1550f0450cea997dc5dff4083aa4b09d01aae [diff] |
Auto merge of #860 - emilio:issue-848, r=fitzgen lib: Filter out include paths when looking for clang paths. Fixes #848
bindgen
bindgen
automatically generates Rust FFI bindings to C and 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