Skip to content

Releases: rust-lang/rust-bindgen

v0.71.1

09 Dec 15:24
v0.71.1
Compare
Choose a tag to compare

We are happy to announce a new release of bindgen 🎉

Changelog

Fixed

  • Fix --version and --generate-shell-completions (#3040)

Upgrade bindgen

Upgrade to this release by updating your Cargo.toml:

bindgen = "0.71.1"

Install bindgen-cli

Install prebuild binaries using cargo binstall

Just run

cargo binstall bindgen-cli

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.71.1/bindgen-cli-installer.sh | sh

Download bindgen-cli 0.71.1

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

Compile and install binaries from source

Just run

cargo install bindgen-cli

Friends

Thanks to everyone who contributed to this release!

  • Christian Poveda
  • Jan Alexander Steffens (heftig)

Contributing

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.

v0.71.0

09 Dec 14:49
v0.71.0
93c5b8b
Compare
Choose a tag to compare

We are happy to announce a new release of bindgen 🎉

Changelog

Added

  • Add the ParseCallbacks::new_item_found callback to expose the original and final name of structs, unions and enums (#2658).
  • Add the field_type_name field to FieldInfo to expose the name of the type of a field (#2863)
  • Add support for custom attributes with the --with-attribute-custom flag (#2866)
  • Allow setting --rust-target to any Rust version supported by bindgen (#2993)
  • Use c-string literals if the --generate-cstr flag is used for Rust targets after 1.77 under the 2021 edition (#2996)
  • Add the --rust-edition flag which allows to select which Rust edition to target. (#3002, #3013)
  • Use unsafe extern instead of extern in blocks for any Rust target after 1.82. (#3015)

Changed

  • The --wrap-static-fns related options no longer require the experimental feature or flag (#2928)
  • Use the Display implementation instead of the Debug one for BindgenError in bindgen-cli (#3005)

Removed

  • Dropped support for any Clang versions strictly lower than 9.0 (#2932)
  • Dropped support for any Rust version strictly lower than 1.33 (#2993)

Fixed

  • Represent opaque types in a FFI-safe way (#2880)
  • Use the underlying type of any atomic type instead of panicking (#2920)
  • Use the right characters for newlines on windows (#2923)
  • Inlined namespaces are properly recognized now (#2950)
  • Unsafe calls to libloading are now wrapped in unsafe blocks when using dynamic loading (#2961)
  • The ParseCallbacks::field_visibility callback is now called for newtypes as well (#2967)
  • Gate the use of the addr_of and addr_of_mut macros under the 1.51 rust version (#2988)

Upgrade bindgen

Upgrade to this release by updating your Cargo.toml:

bindgen = "0.71.0"

Install bindgen-cli

Install prebuild binaries using cargo binstall

Just run

cargo binstall bindgen-cli

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.71.0/bindgen-cli-installer.sh | sh

Download bindgen-cli 0.71.0

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

Compile and install binaries from source

Just run

cargo install bindgen-cli

Friends

Thanks to everyone who contributed to this release!

  • Brian Ward
  • Christiaan Biesterbosch
  • Christian Poveda
  • David Tolnay
  • Emilio Cobos Álvarez
  • Enes
  • George Bateman
  • John Baublitz
  • Jonathan Schwender
  • Jubilee Young
  • Martin Kröning
  • Maxence Younsi
  • Miguel Ojeda
  • Mossa
  • myyrakle
  • Nik Konyuchenko
  • Valentin
  • Yuri Astrakhan
  • Zhang Jingqiang

Contributing

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.

v0.69.5

08 Oct 16:41
ddd00d4
Compare
Choose a tag to compare

Install bindgen-cli 0.69.5

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.5/bindgen-cli-installer.sh | sh

Download bindgen-cli 0.69.5

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

v0.70.1

20 Aug 21:32
Compare
Choose a tag to compare

Install bindgen-cli 0.70.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.70.1/bindgen-cli-installer.sh | sh

Download bindgen-cli 0.70.1

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

v0.70.0

16 Aug 23:01
Compare
Choose a tag to compare

Install bindgen-cli 0.70.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.70.0/bindgen-cli-installer.sh | sh

Download bindgen-cli 0.70.0

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

v0.69.4

04 Feb 12:54
62859b2
Compare
Choose a tag to compare

Install bindgen-cli 0.69.4

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.4/bindgen-cli-installer.sh | sh

Download bindgen-cli 0.69.4

File Platform Checksum
bindgen-cli-aarch64-apple-darwin.tar.xz macOS Apple Silicon checksum
bindgen-cli-x86_64-apple-darwin.tar.xz macOS Intel checksum
bindgen-cli-x86_64-unknown-linux-gnu.tar.xz Linux x64 checksum

v0.69.3

04 Feb 11:52
918abdc
Compare
Choose a tag to compare

Install bindgen-cli 0.69.3

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.3/bindgen-cli-installer.sh | sh

Download bindgen-cli 0.69.3

File Platform Checksum
bindgen-cli-aarch64-apple-darwin.tar.xz macOS Apple Silicon checksum
bindgen-cli-x86_64-apple-darwin.tar.xz macOS Intel checksum
bindgen-cli-x86_64-unknown-linux-gnu.tar.xz Linux x64 checksum

v0.69.2

13 Jan 00:15
2a22051
Compare
Choose a tag to compare

Install bindgen-cli 0.69.2

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.2/bindgen-cli-installer.sh | sh

Download bindgen-cli 0.69.2

File Platform Checksum
bindgen-cli-aarch64-apple-darwin.tar.xz macOS Apple Silicon checksum
bindgen-cli-x86_64-apple-darwin.tar.xz macOS Intel checksum
bindgen-cli-x86_64-unknown-linux-gnu.tar.xz Linux x64 checksum

v0.69.1

02 Nov 17:52
f3f3d32
Compare
Choose a tag to compare

Install bindgen-cli 0.69.1

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.1/bindgen-cli-installer.sh | sh

Download bindgen-cli 0.69.1

File Platform Checksum
bindgen-cli-aarch64-apple-darwin.tar.xz macOS Apple Silicon checksum
bindgen-cli-x86_64-apple-darwin.tar.xz macOS Intel checksum
bindgen-cli-x86_64-unknown-linux-gnu.tar.xz Linux x64 checksum

v0.69.0

01 Nov 18:00
c73990c
Compare
Choose a tag to compare

Install bindgen-cli 0.69.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.0/bindgen-cli-installer.sh | sh

Download bindgen-cli 0.69.0

File Platform Checksum
bindgen-cli-aarch64-apple-darwin.tar.xz macOS Apple Silicon checksum
bindgen-cli-x86_64-apple-darwin.tar.xz macOS Intel checksum
bindgen-cli-x86_64-unknown-linux-gnu.tar.xz Linux x64 checksum