tag | 04c0e551864de597f81a3950f2aa34d4952690e1 | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Sun May 21 03:22:57 2017 +0200 |
object | 9bb794bb3305ae2355e1945b3abe3d0d8064a428 |
v0.25.1
commit | 9bb794bb3305ae2355e1945b3abe3d0d8064a428 | [log] [tgz] |
---|---|---|
author | bors-servo <lbergstrom+bors@mozilla.com> | Sat May 20 15:24:22 2017 -0500 |
committer | GitHub <noreply@github.com> | Sat May 20 15:24:22 2017 -0500 |
tree | dca1ec80fcb154249a0533c84ad75d7e1802bd48 | |
parent | ea9a9322053b4bfef91206e33a67cf96e2831930 [diff] | |
parent | e7978c51e1bd82a54281d5a6be654f1ded9dd626 [diff] |
Auto merge of #709 - emilio:fix-stylo-openbsd, r=fitzgen Minor version bump to peek up clang-sys updates in stylo. This should fix https://bugzilla.mozilla.org/show_bug.cgi?id=1365488 There aren't any breaking changes since 0.25, only new features and fixes for libclang >3.9
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