Summary
Introduction
Requirements
Library Usage with
build.rs
Tutorial
Add
bindgen
as a Build Dependency
Create a
wrapper.h
Header
Create a
build.rs
File
Include the Generated Bindings in
src/lib.rs
Write a Sanity Test
Publish Your Crate!
Command Line Usage
Customizing the Generated Bindings
Whitelisting
Blacklisting
Treating a Type as an Opaque Blob of Bytes
Replacing One Type with Another
Preventing the Derivation of
Copy
and
Clone
Generating Bindings to C++
Using Unions
Using Bitfields
FAQ