commit | e97d041a99d025f2cccd8fcaa2f7d6951b1373e6 | [log] [tgz] |
---|---|---|
author | Nick Fitzgerald <fitzgen@gmail.com> | Thu May 25 10:34:47 2017 -0700 |
committer | Nick Fitzgerald <fitzgen@gmail.com> | Thu May 25 10:34:47 2017 -0700 |
tree | 4f6ceff50ea208ea664f9514252df50f8c8983b7 | |
parent | 09ac682f296b13aa2694a24a35fd60fa70bd0e45 [diff] |
Bump to version 0.25.2
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