tag | 9b3b612ebf0125ba86e862950af64d6a594fe936 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Fri Nov 13 19:43:10 2020 +0100 |
object | c2b3a71fc46cb05032dc99ece6a98cf0fb6359eb |
v0.47.4 Backported BINDGEN_EXTRA_CLANG_ARGS support.
commit | c2b3a71fc46cb05032dc99ece6a98cf0fb6359eb | [log] [tgz] |
---|---|---|
author | Martin Habovstiak <martin.habovstiak@gmail.com> | Tue Nov 03 18:00:55 2020 +0100 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Fri Nov 13 19:42:18 2020 +0100 |
tree | 4a01a2af7469a2a83e96305c1c056e885fde6576 | |
parent | f6b4eae4dc3397b1e3a6b3b4db73552d6ebd1415 [diff] |
Bump version after backporting
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