Back to Rust Bindgen

Tutorial

book/src/tutorial-0.md

0.72.1470 B
Original Source

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.