tag | 0579cfb4ddd20105ff67797697b6862554509b73 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Tue Jun 20 13:34:10 2017 +0200 |
object | 8470e221f9fa5d1f195339737fdd3a7b433cad51 |
v0.26.0
commit | 8470e221f9fa5d1f195339737fdd3a7b433cad51 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Tue Jun 20 12:56:36 2017 +0200 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Tue Jun 20 12:56:36 2017 +0200 |
tree | ceabf90d704d6793f01a4a6264c0dfa8ca4924d3 | |
parent | 521b7d11b0a814b9533a83e981f7a5d7fac63fbf [diff] |
Breaking version bump.
bindgen
bindgen
automatically generates Rust FFI bindings to C and C++ libraries.
For example, given the C header cool.h
:
typedef struct CoolStruct { int x; int y; } CoolStruct; void cool_function(int i, char c, CoolStruct* cs);
bindgen
produces Rust FFI code allowing you to call into the cool
library's functions and use its types:
/* automatically generated by rust-bindgen */ #[repr(C)] pub struct CoolStruct { pub x: ::std::os::raw::c_int, pub y: ::std::os::raw::c_int, } extern "C" { pub fn cool_function(i: ::std::os::raw::c_int, c: ::std::os::raw::c_char, cs: *mut CoolStruct); }
📚 Read the bindgen
users guide here! 📚
API reference documentation is on docs.rs