chore(deps): update rust crate bindgen to 0.72.0 #270

Merged
lucas merged 1 commit from renovate/bindgen-0.x into master 2025-07-02 23:42:59 +02:00
Collaborator

This PR contains the following updates:

Package Type Update Change
bindgen (source) workspace.dependencies minor 0.70.1 -> 0.72.0

Release Notes

rust-lang/rust-bindgen (bindgen)

v0.72.0

Compare Source

Added

  • Report enums in ParseCallbacks.
  • Refactor item_name method to use ItemInfo struct.
  • Add callback to modify contents of macro
  • Discovery callbacks for functions and methods.
  • Options to generate uncallable C++ functions.
  • Provide option to get real virtual fn receiver.

Changed

  • Generate bindings compatible with current rustc version by default.

Removed

  • Remove unused which-rustfmt feature
  • Remove warning for opaque forward declarations

Fixed

  • More sophisticated handling of the triple in rust_to_clang_target
  • Rename *-apple-ios-sim to ...simulator
  • Fix OpenCL vectors that use "ext_vector_type".
  • Fix union layout when it contains 0 sized array.
  • Avoid crashing on variadic unions without layout information.
  • Distinguish char16_t.
  • Fix bugs in --clang-macro-fallback
  • Add missed unsafe in the raw_set_bit function
  • Use link_name for dynamic library loading
  • Add "gen" to list of rust keywords in 'rust_mangle'
  • Use appropriate rustfmt --format ... param

v0.71.1

Compare Source

Fixed

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

v0.71.0

Compare Source

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)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [bindgen](https://rust-lang.github.io/rust-bindgen/) ([source](https://github.com/rust-lang/rust-bindgen)) | workspace.dependencies | minor | `0.70.1` -> `0.72.0` | --- ### Release Notes <details> <summary>rust-lang/rust-bindgen (bindgen)</summary> ### [`v0.72.0`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0720-2025-06-08) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.71.1...v0.72.0) #### Added - Report enums in ParseCallbacks. - Refactor item_name method to use ItemInfo struct. - Add callback to modify contents of macro - Discovery callbacks for functions and methods. - Options to generate uncallable C++ functions. - Provide option to get real virtual fn receiver. #### Changed - Generate bindings compatible with current rustc version by default. #### Removed - Remove unused which-rustfmt feature - Remove warning for opaque forward declarations #### Fixed - More sophisticated handling of the triple in rust_to_clang_target - Rename \*-apple-ios-sim to ...simulator - Fix OpenCL vectors that use "ext_vector_type". - Fix union layout when it contains 0 sized array. - Avoid crashing on variadic unions without layout information. - Distinguish char16\_t. - Fix bugs in --clang-macro-fallback - Add missed unsafe in the raw_set_bit function - Use link_name for dynamic library loading - Add "gen" to list of rust keywords in 'rust_mangle' - Use appropriate `rustfmt --format ...` param ### [`v0.71.1`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#v0711-2024-12-09) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.71.0...v0.71.1) #### Fixed - Fix `--version` and `--generate-shell-completions` ([#&#8203;3040](https://github.com/rust-lang/rust-bindgen/issues/3040)) ### [`v0.71.0`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0710-2024-12-06) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.70.1...v0.71.0) #### Added - Add the `ParseCallbacks::new_item_found` callback to expose the original and final name of structs, unions and enums ([#&#8203;2658](https://github.com/rust-lang/rust-bindgen/issues/2658)). - Add the `field_type_name` field to `FieldInfo` to expose the name of the type of a field ([#&#8203;2863](https://github.com/rust-lang/rust-bindgen/issues/2863)) - Add support for custom attributes with the `--with-attribute-custom` flag ([#&#8203;2866](https://github.com/rust-lang/rust-bindgen/issues/2866)) - Allow setting `--rust-target` to any Rust version supported by bindgen ([#&#8203;2993](https://github.com/rust-lang/rust-bindgen/issues/2993)) - Use c-string literals if the `--generate-cstr` flag is used for Rust targets after 1.77 under the 2021 edition ([#&#8203;2996](https://github.com/rust-lang/rust-bindgen/issues/2996)) - Add the `--rust-edition` flag which allows to select which Rust edition to target. ([#&#8203;3002](https://github.com/rust-lang/rust-bindgen/issues/3002), [#&#8203;3013](https://github.com/rust-lang/rust-bindgen/issues/3013)) - Use `unsafe extern` instead of `extern` in blocks for any Rust target after 1.82. ([#&#8203;3015](https://github.com/rust-lang/rust-bindgen/issues/3015)) #### Changed - The `--wrap-static-fns` related options no longer require the experimental feature or flag ([#&#8203;2928](https://github.com/rust-lang/rust-bindgen/issues/2928)) - Use the `Display` implementation instead of the `Debug` one for `BindgenError` in `bindgen-cli` ([#&#8203;3005](https://github.com/rust-lang/rust-bindgen/issues/3005)) #### Removed - Dropped support for any Clang versions strictly lower than 9.0 ([#&#8203;2932](https://github.com/rust-lang/rust-bindgen/issues/2932)) - Dropped support for any Rust version strictly lower than 1.33 ([#&#8203;2993](https://github.com/rust-lang/rust-bindgen/issues/2993)) #### Fixed - Represent opaque types in a FFI-safe way ([#&#8203;2880](https://github.com/rust-lang/rust-bindgen/issues/2880)) - Use the underlying type of any atomic type instead of panicking ([#&#8203;2920](https://github.com/rust-lang/rust-bindgen/issues/2920)) - Use the right characters for newlines on windows ([#&#8203;2923](https://github.com/rust-lang/rust-bindgen/issues/2923)) - Inlined namespaces are properly recognized now ([#&#8203;2950](https://github.com/rust-lang/rust-bindgen/issues/2950)) - Unsafe calls to `libloading` are now wrapped in `unsafe` blocks when using dynamic loading ([#&#8203;2961](https://github.com/rust-lang/rust-bindgen/issues/2961)) - The `ParseCallbacks::field_visibility` callback is now called for newtypes as well ([#&#8203;2967](https://github.com/rust-lang/rust-bindgen/issues/2967)) - Gate the use of the `addr_of` and `addr_of_mut` macros under the 1.51 rust version ([#&#8203;2988](https://github.com/rust-lang/rust-bindgen/issues/2988)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC40Mi4zIiwidXBkYXRlZEluVmVyIjoiNDAuNDIuMyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
renovate-botbot added 1 commit 2025-07-02 16:46:58 +02:00
chore(deps): update rust crate bindgen to 0.72.0
All checks were successful
build/linux Build for the target platform: linux
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
501b216be3
lucas merged commit 9ffe0647d7 into master 2025-07-02 23:42:59 +02:00
lucas deleted branch renovate/bindgen-0.x 2025-07-02 23:42:59 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: bitsquid_dt/dtmt#270
No description provided.