#bindings #ffi #code-generation

yanked libbindgen

A binding generator for Rust

Uses old Rust 2015

0.1.7 Jan 16, 2017
0.1.6 Jan 10, 2017
0.1.5 Dec 29, 2016

#89 in #code-generation

32 downloads per month
Used in 3 crates (2 directly)

BSD-3-Clause

380KB
7.5K SLoC

libbindgen

Generate Rust FFI bindings from C/C++ header files.


lib.rs:

Generate Rust bindings for C and C++ libraries.

Provide a C/C++ header file, receive Rust FFI code to call into C/C++ functions and use types defined in the header.

See the Builder struct for usage. Autogenerated documentation module.

Dependencies

~6.5MB
~146K SLoC