• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Add `bindgen` as a Build Dependency
2
3First we need to declare a build-time dependency on `bindgen` by adding it to
4the `[build-dependencies]` section of our crate's `Cargo.toml` file.
5
6Please always use the latest version of `bindgen`, it has the most fixes and
7best compatibility. At the time of writing the latest bindgen is `0.53.1`, but
8you can always check [the bindgen page of
9crates.io](https://crates.io/crates/bindgen) to verify the latest version if
10you're unsure.
11
12```toml
13[build-dependencies]
14bindgen = "0.53.1"
15```
16