tag | 0485e318712fbadc5300341f73a3c886b9cff8fa | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Tue Jul 02 00:03:31 2019 +0200 |
object | d7898170fb8feadcab1940c2ecfbac2510780552 |
v0.50.0
commit | d7898170fb8feadcab1940c2ecfbac2510780552 | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Mon Jul 01 23:54:26 2019 +0200 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Tue Jul 02 00:02:40 2019 +0200 |
tree | 7e07c1f59c9283766cf5797b1284bd4d1dfdbf93 | |
parent | 231bce8ba3022bff0aed72ca3f33ca29f5f8de64 [diff] |
Do a breaking version bump, yank 0.49.3 Fixes #1587
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