Tutorial - The bindgen User Guide
Description: `bindgen` automatically generates Rust FFI bindings to C and C++ libraries.

## Keyboard shortcuts

Press `←` or `→` to navigate between chapters

Press `S` or `/` to search in the book

Press `?` to show this help

Press `Esc` to hide this help

# Tutorial

The following tutorial is adapted from this blog post.

What follows is a whirlwind introductory tutorial to using `bindgen` from inside `build.rs`. We’ll generate bindings to `bzip2` (which is available on most systems) on-the-fly.

TL;DR? The full tutorial code is available here.