commit | 0fab51e501f45727169516f605de31e7e1d19a62 | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Thu Jul 27 16:42:44 2017 -0500 |
committer | GitHub <noreply@github.com> | Thu Jul 27 16:42:44 2017 -0500 |
tree | d879d4c8fe4f87d0f185927fcbf621ba6b322018 | |
parent | 331862adaf29c3a73db4156fd346b7755123fa3e [diff] | |
parent | 66f600eed117b9f7f5197ce1e3429539aac24365 [diff] |
Auto merge of #862 - fitzgen:remove-unused-extra, r=emilio Remove unused `Extra` associated types r? @photoszzt or @emilio
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