| commit | bc37417ac3abb58c575ef22eaed6468e8082c601 | [log] [tgz] |
|---|---|---|
| author | Thiébaud Weksteen <tweek@google.com> | Tue Jun 30 21:48:09 2020 +0200 |
| committer | Thiébaud Weksteen <tweek@google.com> | Tue Jun 30 21:57:49 2020 +0200 |
| tree | ee08ef8f273a9ec9d3d07609cc5528a1b7a67018 | |
| parent | 93dc6dbe6931f5d8f2c7b9c9fd6cb6923eaea7be [diff] |
Remove deny_warnings attribute Test: cd external/rust/crates; mma Change-Id: I77b7b406849fc27b0690db38f021d0aa2372cdd0
bindgenbindgen 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! 📚
The minimum supported Rust version is 1.34.
No MSRV bump policy has been established yet, so MSRV may increase in any release.
API reference documentation is on docs.rs