tag | 3439426aab9ed792a5866c96accc22ed402f691e | |
---|---|---|
tagger | Emilio Cobos Álvarez <emilio@crisal.io> | Mon Sep 23 18:57:48 2019 +0200 |
object | 8e720a929b64c37e4cb1436041a125c07451030b |
v0.50.1 Cherry-picks https://github.com/rust-lang/rust-bindgen/pull/1627.
commit | 8e720a929b64c37e4cb1436041a125c07451030b | [log] [tgz] |
---|---|---|
author | Emilio Cobos Álvarez <emilio@crisal.io> | Mon Sep 23 18:57:00 2019 +0200 |
committer | Emilio Cobos Álvarez <emilio@crisal.io> | Mon Sep 23 18:57:00 2019 +0200 |
tree | e90b26a3a08a315b22122e7664e5ea3498c14aed | |
parent | 3f1ce7680e893c87a80c57f069acb988fa6fa1e1 [diff] |
Release v0.50.1 This contains a fix for nightly bustage, see https://github.com/rust-lang/rust-bindgen/pull/1627.
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