bindgen
as a Build DependencyFirst we need to declare a build-time dependency on bindgen
by adding it to the [build-dependencies]
section of our crate's Cargo.toml
file.
Please always use the latest version of bindgen
, it has the most fixes and best compatibility. At the time of writing the latest bindgen is 0.50.0
, but you can always check the bindgen page of crates.io to verify the latest version if you're unsure.
[build-dependencies] bindgen = "0.50"