tag | 7da674b3bdfe212898e60589f94213695edd09b0 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Thu May 21 21:42:44 2020 +0200 |
object | d405baf05acec7caf6d3d403cccdaeb5e67423e3 |
v0.54.0
commit | d405baf05acec7caf6d3d403cccdaeb5e67423e3 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Thu May 21 21:41:37 2020 +0200 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Thu May 21 21:41:37 2020 +0200 |
tree | 01354bc34e7c213b10e3d3cc03b2eb5d30be3314 | |
parent | b10fa6f894c1314dd06cd0720e95b4e4a8d3117f [diff] |
Release 0.54.0.
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! 📚
The minimum supported Rust version is 1.34.
No MSRV bump policy has been established yet, so MSRV may increase in any release.
API reference documentation is on docs.rs