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`, as it has the most fixes and 7best compatibility. 8You can always check the latest version at 9[the bindgen page in crates.io](https://crates.io/crates/bindgen). 10 11```toml 12[build-dependencies] 13bindgen = "0.65.1" 14``` 15 16> ⚠️ **Warning** 17> 18> `bindgen` needs to be added to the `[build-dependencies]` section, not the normal 19> `[dependencies]` section. If you add it as a regular dependency, you will get 20> errors like the following: `` error[E0463]: can't find crate for `bindgen` `` 21