v0.71.0
We are happy to announce a new release of bindgen :tada:
Unclaimed project
Are you a maintainer of rust-bindgen? Claim this project to take control of your public changelog and roadmap.
Changelog
Automatically generates Rust FFI bindings to C (and some C++) libraries.
We are happy to announce a new release of bindgen :tada:
ParseCallbacks::new_item_found callback to expose the original and final name of structs, unions and enums (#2658).field_type_name field to FieldInfo to expose the name of the type of a field (#2863)--with-attribute-custom flag (#2866)--rust-target to any Rust version supported by bindgen (#2993)--generate-cstr flag is used for Rust targets after 1.77 under the 2021 edition (#2996)--rust-edition flag which allows to select which Rust edition to target. (#3002, #3013)unsafe extern instead of extern in blocks for any Rust target after 1.82. (#3015)--wrap-static-fns related options no longer require the experimental feature or flag (#2928)Display implementation instead of the Debug one for BindgenError in bindgen-cli (#3005)libloading are now wrapped in unsafe blocks when using dynamic loading (#2961)ParseCallbacks::field_visibility callback is now called for newtypes as well (#2967)addr_of and addr_of_mut macros under the 1.51 rust version (#2988)bindgenUpgrade to this release by updating your Cargo.toml:
bindgen = "0.71.0"
bindgen-clicargo binstallJust run
cargo binstall bindgen-cli
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.71.0/bindgen-cli-installer.sh | sh
| File | Platform | Checksum | |--------|----------|----------| | bindgen-cli-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum | | bindgen-cli-x86_64-apple-darwin.tar.xz | Intel macOS | checksum | | bindgen-cli-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
Just run
cargo install bindgen-cli
Thanks to everyone who contributed to this release!
Want to join us? Check out our CONTRIBUTING.md and take a look at some of these issues:
Want to help improve our documentation? Check out the issues labeled "docs".
Found a bug with bindgen? File an issue here.