Update Rust crate bindgen to 0.71 #25

Open
renovatebot wants to merge 1 commit from renovate/bindgen-0.x into master
Collaborator

This PR contains the following updates:

Package Type Update Change
bindgen (source) build-dependencies minor 0.65 -> 0.71

⚠️ Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

rust-lang/rust-bindgen (bindgen)

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)

v0.70.1

Compare Source

Added

Changed

Removed

Fixed

  • Fix regression where the const layout tests were triggering the unnecessary_operation and identity_op clippy warnings.

Security

v0.70.0

Compare Source

Added

  • Add target mappings for riscv64imac and riscv32imafc.
  • Add a complex macro fallback API (#​2779).
  • Add option to use DST structs for flexible arrays (--flexarray-dst, #​2772).
  • Add option to dynamically load variables (#​2812).
  • Add option in CLI to use rustified non-exhaustive enums (--rustified-non-exhaustive-enum, #​2847).
  • Add field_type_name to FieldInfo.

Changed

  • Remove which and lazy-static dependencies (#​2809, #​2817).
  • Generate compile-time layout tests (#​2787).
  • Print bindgen-cli errors to stderr instead of stdout (#​2840)

Removed

Fixed

  • Fix --formatter=prettyplease not working in bindgen-cli by adding prettyplease feature and
    enabling it by default for bindgen-cli (#​2789) .
  • Fix --allowlist-item so anonymous enums are no longer ignored (#​2827).
  • Use clang_getFileLocation instead of clang_getSpellingLocation to fix clang-trunk (#​2824).
  • Fix generated constants: f64::INFINITY, f64::NEG_ INFINITY, f64::NAN (#​2854).

Security

v0.69.5

Compare Source

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.69.4

Compare Source

Added

Changed

Removed

Fixed

Security

v0.69.3

Compare Source

Added

Changed

  • Use CR consistently on windows (#​2698)
  • Replaced peeking_take_while by itertools (#​2724)

Removed

Fixed

  • Try to avoid repr(packed) for explicitly aligned types when not needed (#​2734)
  • Improved destructor handling on Windows (#​2663)
  • Support Float16 (#​2667)
  • Fix alignment contribution from bitfields (#​2680)
  • Fixed msrv build.

Security

  • Updated shlex dependency (RUSTSEC-2024-0006)

v0.69.2

Compare Source

Added

Changed

Removed

Fixed

  • Fixed generation of extern "C" blocks with llvm 18+. See #​2689.

Security

v0.69.1

Compare Source

Fixed

  • Allow to run bindgen -v without an input header argument.

v0.69.0

Compare Source

Added

  • Added the ParseCallbacks::header_file callback which runs on every filename passed to Builder::header.
  • Added the CargoCallbacks::new constructor which emits a cargo-rerun line
    for every input header file by default.
  • Added the CargoCallbacks::rerun_on_header_files method to configure whether
    a cargo-rerun line should be emitted for every input header file.

Changed

  • The --wrap-static-fns feature was updated so function types that has no
    argument use void as its sole argument.
  • CargoCallbacks is no longer a unit-like
    struct
    and the
    CargoCallbacks constant was added to mitigate the breaking nature of this
    change. This constant has been marked as deprecated and users will have to
    use the new CargoCallbacks::new method in the future.

Removed

Fixed

  • Allow compiling bindgen-cli with a static libclang.
  • Emit an opaque integer type for pointer types that don't have the same size
    as the target's pointer size.
  • Avoid escaping Objective-C method names unless they are Self, self,
    crate or super.

Security

v0.68.1

Compare Source

Fixed

  • Fixed errors on the windows artifact build process.

v0.68.0

Compare Source

Added

  • The system ABI is now supported as an option for the --override-abi flag.
  • The allowlist_item method and the --allowlist-item flag have been
    included to filter items regardless or their kind.
  • Include installers as release artifacts on Github.

Changed

  • The Clone implementation for _BindgenUnionField has been changed to pass
    the incorrect_clone_impl_on_copy_type Clippy lint.
  • The c_unwind ABI can be used without a feature gate for any Rust target version
    equal to or greater than 1.71.
    This comes as a result of the ABI being stabilised (in Rust 1.71).
  • Formatting changes when using prettyplease as a formatter due to a new
    prettyplease version.
  • Avoid generating invalid CStr constants when using the --generate-cstr
    option.

Removed

  • The extra_assert and extra_assert_eq macros are no longer exported.

Fixed

  • Bindgen no longer panics when parsing an objective-C header that includes a
    Rust keyword that cannot be a raw identifier, such as: self, crate,
    super or Self.

v0.66.1

Compare Source

Removed

  • Revert source order sorting (#​2543) due to correctness regressions #​2558.

v0.66.0

Compare Source

Added

  • Added the --generate-cstr CLI flag to generate string constants as &CStr
    instead of &[u8]. (Requires Rust 1.59 or higher.)
  • Added the --generate-shell-completions CLI flag to generate completions for
    different shells.
  • The --wrap-static-fns option can now wrap va_list functions as variadic functions
    with the experimental ParseCallbacks::wrap_as_variadic_fn method.
  • Add target mappings for riscv32imc and riscv32imac.
  • Add the ParseCallbacks::field_visibility method to modify field visibility.

Changed

  • Non-UTF-8 string constants are now generated as references (&[u8; SIZE])
    instead of arrays ([u8; SIZE]) to match UTF-8 strings.
  • Wrappers for static functions that return void no longer contain a return
    statement and only call the static function instead.
  • The --wrap-static-fns option no longer emits wrappers for static variadic
    functions.
  • Depfiles generated with --depfile or Builder::depfile will now properly
    generate module names and paths that include spaces by escaping them. To make
    the escaping clear and consistent, backslashes are also escaped.
  • Updated bitflags dependency to 2.2.1. This changes the API of CodegenConfig.
  • Prettyplease formatting is gated by an optional, enabled by default Cargo
    feature when depending on bindgen as a library.
  • Items are now parsed in the order they appear in source files. This may result in
    auto-generated _bindgen_* names having a different index.
  • Use default visibility for padding fields: Previously, padding fields were
    always public. Now, they follow the default visibility for the type they are
    in.
  • Compute visibility of bitfield unit based on actual field visibility: A
    bitfield unit field and its related functions now have their visibility
    determined based on the most private between the default visibility and the
    actual visibility of the bitfields within the unit.

Removed

  • Remove redundant Cargo features, which were all implicit:

    • bindgen-cli: env_logger and log removed in favor of logging
    • bindgen (lib):
      • log removed in favor of logging
      • which removed in favor of which-logging
      • annotate-snippets removed in favor of experimental
  • Prettyplease is available as a Formatter variant now.


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)) | build-dependencies | minor | `0.65` -> `0.71` | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>rust-lang/rust-bindgen (bindgen)</summary> ### [`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)) ### [`v0.70.1`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0701-2024-08-20) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.70.0...v0.70.1) #### Added #### Changed #### Removed #### Fixed - Fix regression where the `const` layout tests were triggering the `unnecessary_operation` and `identity_op` clippy warnings. #### Security ### [`v0.70.0`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0700-2024-08-16) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.69.5...v0.70.0) #### Added - Add target mappings for riscv64imac and riscv32imafc. - Add a complex macro fallback API ([#&#8203;2779](https://github.com/rust-lang/rust-bindgen/issues/2779)). - Add option to use DST structs for flexible arrays (--flexarray-dst, [#&#8203;2772](https://github.com/rust-lang/rust-bindgen/issues/2772)). - Add option to dynamically load variables ([#&#8203;2812](https://github.com/rust-lang/rust-bindgen/issues/2812)). - Add option in CLI to use rustified non-exhaustive enums (--rustified-non-exhaustive-enum, [#&#8203;2847](https://github.com/rust-lang/rust-bindgen/issues/2847)). - Add field_type_name to FieldInfo. #### Changed - Remove which and lazy-static dependencies ([#&#8203;2809](https://github.com/rust-lang/rust-bindgen/issues/2809), [#&#8203;2817](https://github.com/rust-lang/rust-bindgen/issues/2817)). - Generate compile-time layout tests ([#&#8203;2787](https://github.com/rust-lang/rust-bindgen/issues/2787)). - Print `bindgen-cli` errors to stderr instead of stdout ([#&#8203;2840](https://github.com/rust-lang/rust-bindgen/issues/2840)) #### Removed #### Fixed - Fix `--formatter=prettyplease` not working in `bindgen-cli` by adding `prettyplease` feature and enabling it by default for `bindgen-cli` ([#&#8203;2789](https://github.com/rust-lang/rust-bindgen/issues/2789)) . - Fix `--allowlist-item` so anonymous enums are no longer ignored ([#&#8203;2827](https://github.com/rust-lang/rust-bindgen/issues/2827)). - Use clang_getFileLocation instead of clang_getSpellingLocation to fix clang-trunk ([#&#8203;2824](https://github.com/rust-lang/rust-bindgen/issues/2824)). - Fix generated constants: `f64::INFINITY`, `f64::NEG_ INFINITY`, `f64::NAN` ([#&#8203;2854](https://github.com/rust-lang/rust-bindgen/issues/2854)). #### Security - Update `tempfile` and `rustix` due to [GHSA-c827-hfw6-qwvm](https://github.com/advisories/GHSA-c827-hfw6-qwvm). ### [`v0.69.5`](https://github.com/rust-lang/rust-bindgen/releases/tag/v0.69.5) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.69.4...v0.69.5) #### Install bindgen-cli 0.69.5 ##### Install prebuilt binaries via shell script ```sh 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](https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.5/bindgen-cli-aarch64-apple-darwin.tar.xz) | Apple Silicon macOS | [checksum](https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.5/bindgen-cli-aarch64-apple-darwin.tar.xz.sha256) | | [bindgen-cli-x86\_64-apple-darwin.tar.xz](https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.5/bindgen-cli-x86\_64-apple-darwin.tar.xz) | Intel macOS | [checksum](https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.5/bindgen-cli-x86\_64-apple-darwin.tar.xz.sha256) | | [bindgen-cli-x86\_64-unknown-linux-gnu.tar.xz](https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.5/bindgen-cli-x86\_64-unknown-linux-gnu.tar.xz) | x64 Linux | [checksum](https://github.com/rust-lang/rust-bindgen/releases/download/v0.69.5/bindgen-cli-x86\_64-unknown-linux-gnu.tar.xz.sha256) | ### [`v0.69.4`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0694-2024-02-04) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.69.3...v0.69.4) #### Added #### Changed - Allow older itertools. ([#&#8203;2745](https://github.com/rust-lang/rust-bindgen/issues/2745)) #### Removed #### Fixed #### Security ### [`v0.69.3`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0693-2024-02-04) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.69.2...v0.69.3) #### Added - Added blocklist_var ([#&#8203;2731](https://github.com/rust-lang/rust-bindgen/issues/2731)) - Stabilized thiscall_abi ([#&#8203;2661](https://github.com/rust-lang/rust-bindgen/issues/2661)) #### Changed - Use CR consistently on windows ([#&#8203;2698](https://github.com/rust-lang/rust-bindgen/issues/2698)) - Replaced peeking_take_while by itertools ([#&#8203;2724](https://github.com/rust-lang/rust-bindgen/issues/2724)) #### Removed #### Fixed - Try to avoid repr(packed) for explicitly aligned types when not needed ([#&#8203;2734](https://github.com/rust-lang/rust-bindgen/issues/2734)) - Improved destructor handling on Windows ([#&#8203;2663](https://github.com/rust-lang/rust-bindgen/issues/2663)) - Support Float16 ([#&#8203;2667](https://github.com/rust-lang/rust-bindgen/issues/2667)) - Fix alignment contribution from bitfields ([#&#8203;2680](https://github.com/rust-lang/rust-bindgen/issues/2680)) - Fixed msrv build. #### Security - Updated shlex dependency (RUSTSEC-2024-0006) ### [`v0.69.2`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0692-2024-01-13) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.69.1...v0.69.2) #### Added #### Changed #### Removed #### Fixed - Fixed generation of extern "C" blocks with llvm 18+. See [#&#8203;2689](https://github.com/rust-lang/rust-bindgen/issues/2689). #### Security ### [`v0.69.1`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0691-2023-11-02) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.69.0...v0.69.1) #### Fixed - Allow to run `bindgen -v` without an input header argument. ### [`v0.69.0`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0690-2023-11-01) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.68.1...v0.69.0) #### Added - Added the `ParseCallbacks::header_file` callback which runs on every filename passed to `Builder::header`. - Added the `CargoCallbacks::new` constructor which emits a cargo-rerun line for every input header file by default. - Added the `CargoCallbacks::rerun_on_header_files` method to configure whether a cargo-rerun line should be emitted for every input header file. #### Changed - The `--wrap-static-fns` feature was updated so function types that has no argument use `void` as its sole argument. - `CargoCallbacks` is no longer a [unit-like struct](https://doc.rust-lang.org/reference/items/structs.html) and the `CargoCallbacks` constant was added to mitigate the breaking nature of this change. This constant has been marked as deprecated and users will have to use the new `CargoCallbacks::new` method in the future. #### Removed #### Fixed - Allow compiling `bindgen-cli` with a static libclang. - Emit an opaque integer type for pointer types that don't have the same size as the target's pointer size. - Avoid escaping Objective-C method names unless they are `Self`, `self`, `crate` or `super`. #### Security ### [`v0.68.1`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0681) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.68.0...v0.68.1) #### Fixed - Fixed errors on the windows artifact build process. ### [`v0.68.0`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0680) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.66.1...v0.68.0) #### Added - The `system` ABI is now supported as an option for the `--override-abi` flag. - The `allowlist_item` method and the `--allowlist-item` flag have been included to filter items regardless or their kind. - Include installers as release artifacts on Github. #### Changed - The `Clone` implementation for `_BindgenUnionField` has been changed to pass the `incorrect_clone_impl_on_copy_type` Clippy lint. - The `c_unwind` ABI can be used without a feature gate for any Rust target version equal to or greater than 1.71. This comes as a result of the ABI being stabilised (in Rust 1.71). - Formatting changes when using prettyplease as a formatter due to a new prettyplease version. - Avoid generating invalid `CStr` constants when using the `--generate-cstr` option. #### Removed - The `extra_assert` and `extra_assert_eq` macros are no longer exported. #### Fixed - Bindgen no longer panics when parsing an objective-C header that includes a Rust keyword that cannot be a raw identifier, such as: `self`, `crate`, `super` or `Self`. ### [`v0.66.1`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0661) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.66.0...v0.66.1) #### Removed - Revert source order sorting ([#&#8203;2543](https://github.com/rust-lang/rust-bindgen/issues/2543)) due to correctness regressions [#&#8203;2558](https://github.com/rust-lang/rust-bindgen/issues/2558). ### [`v0.66.0`](https://github.com/rust-lang/rust-bindgen/blob/HEAD/CHANGELOG.md#0660) [Compare Source](https://github.com/rust-lang/rust-bindgen/compare/v0.65.1...v0.66.0) #### Added - Added the `--generate-cstr` CLI flag to generate string constants as `&CStr` instead of `&[u8]`. (Requires Rust 1.59 or higher.) - Added the `--generate-shell-completions` CLI flag to generate completions for different shells. - The `--wrap-static-fns` option can now wrap `va_list` functions as variadic functions with the experimental `ParseCallbacks::wrap_as_variadic_fn` method. - Add target mappings for riscv32imc and riscv32imac. - Add the `ParseCallbacks::field_visibility` method to modify field visibility. #### Changed - Non-UTF-8 string constants are now generated as references (`&[u8; SIZE]`) instead of arrays (`[u8; SIZE]`) to match UTF-8 strings. - Wrappers for static functions that return `void` no longer contain a `return` statement and only call the static function instead. - The `--wrap-static-fns` option no longer emits wrappers for static variadic functions. - Depfiles generated with `--depfile` or `Builder::depfile` will now properly generate module names and paths that include spaces by escaping them. To make the escaping clear and consistent, backslashes are also escaped. - Updated `bitflags` dependency to 2.2.1. This changes the API of `CodegenConfig`. - Prettyplease formatting is gated by an optional, enabled by default Cargo feature when depending on `bindgen` as a library. - Items are now parsed in the order they appear in source files. This may result in auto-generated `_bindgen_*` names having a different index. - Use default visibility for padding fields: Previously, padding fields were always public. Now, they follow the default visibility for the type they are in. - Compute visibility of bitfield unit based on actual field visibility: A bitfield unit field and its related functions now have their visibility determined based on the most private between the default visibility and the actual visibility of the bitfields within the unit. #### Removed - Remove redundant Cargo features, which were all implicit: - bindgen-cli: `env_logger` and `log` removed in favor of `logging` - bindgen (lib): - `log` removed in favor of `logging` - `which` removed in favor of `which-logging` - `annotate-snippets` removed in favor of `experimental` - Prettyplease is available as a `Formatter` variant now. </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-->
Author
Collaborator

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path libs/scrap/Cargo.toml --workspace
error: failed to load manifest for workspace member `/tmp/renovate/repos/gitea/test-actions/rustdesk/libs/scrap`
referenced by workspace at `/tmp/renovate/repos/gitea/test-actions/rustdesk/Cargo.toml`

Caused by:
  failed to load manifest for dependency `hbb_common`

Caused by:
  failed to read `/tmp/renovate/repos/gitea/test-actions/rustdesk/libs/hbb_common/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

### ⚠️ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: Cargo.lock ``` Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path libs/scrap/Cargo.toml --workspace error: failed to load manifest for workspace member `/tmp/renovate/repos/gitea/test-actions/rustdesk/libs/scrap` referenced by workspace at `/tmp/renovate/repos/gitea/test-actions/rustdesk/Cargo.toml` Caused by: failed to load manifest for dependency `hbb_common` Caused by: failed to read `/tmp/renovate/repos/gitea/test-actions/rustdesk/libs/hbb_common/Cargo.toml` Caused by: No such file or directory (os error 2) ```
renovatebot force-pushed renovate/bindgen-0.x from 835a8fad12
Some checks failed
renovate/artifacts Artifact file update failure
to b489d60cd2
Some checks failed
renovate/artifacts Artifact file update failure
2025-06-06 00:20:57 +00:00
Compare
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No assignees
1 participant
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
test-actions/rustdesk!25
No description provided.