◑
Theme
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 Smoke Test
Publish Your Crate!
Bindings for Non-System Libraries
Command Line Usage
Customizing the Generated Bindings
Allowlisting
Blocklisting
Treating a Type as an Opaque Blob of Bytes
Replacing One Type with Another
Preventing the Derivation of
Copy
and
Clone
Preventing the Derivation of
Debug
Preventing the Derivation of
Default
Annotating Types with
#[must-use]
Field Visibility
Code Formatting
Generating Bindings to C++
Generating Bindings to Objective-C
Using Unions
Using Bitfields
Using Flexible Array Members
FAQ