Skip to content

fix(deps): update rust crate bindgen to 0.73.0 - #385

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/bindgen-0.x
Open

fix(deps): update rust crate bindgen to 0.73.0#385
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/bindgen-0.x

Conversation

@renovate

@renovate renovate Bot commented Nov 17, 2024

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
bindgen (source) dependencies minor 0.69.40.73.0

Release Notes

rust-lang/rust-bindgen (bindgen)

v0.73.1

Compare Source

Added

Changed

  • Widened acceptable prettyplease / syn dependency versions (#​3447).

Removed

Fixed

Security

v0.73.0

Compare Source

Added

  • Add Debug, Clone and Eq traits to ParseCallbacks info types (#​3233).
  • Include the source location in discovery ParseCallbacks (#​3244).
  • Report constants and variables in ParseCallbacks::new_item_found (#​3249).
  • Allow adding custom attributes to extern function blocks (#​3257).
  • Support new-type-alias constants (#​3288, #​3390).
  • Support nested flexible array members (#​3306).
  • Add support for custom per-field attributes (#​3307).
  • Add const-generic bitfield accessors for compile-time optimization (#​3325,
    #​3374).
  • Allow renaming struct and union fields (#​3358).
  • Add a libcpp feature to link libclang against libc++ (#​3375).
  • Prebuilt binaries for aarch64 Linux (#​3217).

Changed

  • Guarantee opaque type layout across all architectures (#​3280).
  • Use NonNull for C++ references (#​3292).
  • Bindings::write now takes impl Write instead of Box<dyn Write>
    (#​3317, #​3324).
  • Optimize bitfield unit get/set with byte-wise operations (#​3325).
  • Emit const __BindgenUnionField accessors and comply with Rust 2024
    unsafe_op_in_unsafe_fn (#​3337).
  • Generate a doc comment pointing at the aliased type when a type alias is
    hidden (#​3122).
  • dyngen: convert the library path to OsStr before opening it (#​3315).
  • Return a NoHeadersProvided error instead of generating empty bindings
    when no input headers are provided (#​3391).
  • Bump the MSRV to 1.71 (#​3401).
  • Bump syn to v3 (#​3401) and shlex to v2 (#​3380).

Removed

  • Removed support for generating code for rustc versions < 1.51, along with
    the corresponding RustTarget constants (#​3281).
  • Removed the dependency on itertools (#​3408).

Fixed

  • Fix a typo in the handling of --rustified-non-exhaustive-enums (#​3266).
  • Apply the same mangling rule to C and C-unwind function types (#​3156).
  • Fix alignment of bitfields in some edge cases (#​3247).
  • Fix typedefs inside constified modules (#​3284).
  • Fix generation of f32 NAN, INFINITY and NEG_INFINITY constants
    (#​3300).
  • Allow constant expressions that don't fit in i64 (#​3301).
  • Deduplicate derive traits added by the add_derives callback (#​3296).
  • Fix packed structs with flexible array members (#​3305).
  • Remove incorrect size_t_is_usize check (#​3313).
  • Prevent default derives for forward-declared types (#​3110).
  • Handle rustc version strings like 1.71.1-beta and 1.71.1-nightly
    (#​3329).
  • Centralize comment generation checks so comment options are respected
    everywhere (#​445, #​3330).
  • Fix unnecessary transmute and unsafe warnings in bitfield codegen (#​3335,
    #​3388).
  • Do not use the canonical declaration for enum type building (#​3346).
  • Allow zero-sized unions to be defined (#​3348).
  • Consolidate the extern block for functions and statics so shared symbols
    are only declared once (#​3367, #​3371).
  • Propagate the implicit target to the macro fallback (#​3382).
  • Avoid an IR cycle for compiler-builtin ObjC typedefs shadowing themselves
    (#​3387).
  • Generate a Debug impl for new-type alias wrappers when the inner type
    only has a manual impl (#​3411).
  • Do not insert dummy fields into bitfields in cases where this would cause
    misalignment (#​3431).
  • Newtype aliases to c_void don't derive traits now (#​3432).

Security

v0.72.1

Compare Source

This is just 0.72.0 with a fix for a breaking change in clang (see #​3264 and related).

Full Changelog: rust-lang/rust-bindgen@v0.72.0...v0.72.1

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)

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


Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added priority::medium priority medium tools labels Nov 17, 2024
@renovate
renovate Bot requested a review from sksat (sksat) November 17, 2024 16:04
@renovate renovate Bot changed the title fix(deps): update rust crate bindgen to 0.70.0 fix(deps): update rust crate bindgen to 0.71.0 Dec 6, 2024
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch from 480c595 to 713f5da Compare December 6, 2024 21:10
@renovate renovate Bot changed the title fix(deps): update rust crate bindgen to 0.71.0 Update Rust crate bindgen to 0.71.0 Dec 9, 2024
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch 2 times, most recently from f0b2566 to d6c7b34 Compare January 9, 2025 11:22
@renovate renovate Bot changed the title Update Rust crate bindgen to 0.71.0 fix(deps): update rust crate bindgen to 0.71.0 Jan 9, 2025
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch 3 times, most recently from 8130dd7 to 73d9513 Compare March 12, 2025 03:22

@sksat sksat (sksat) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@renovate renovate Bot changed the title fix(deps): update rust crate bindgen to 0.71.0 fix(deps): update rust crate bindgen to 0.72.0 Jun 8, 2025
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch from 73d9513 to 3f970f3 Compare June 8, 2025 13:27
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch from 3f970f3 to 8140394 Compare August 10, 2025 14:28
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch from 8140394 to 96c6949 Compare August 31, 2025 21:48
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch from 96c6949 to 01bbff3 Compare September 25, 2025 21:12
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch from 01bbff3 to e2dac3a Compare December 10, 2025 12:52
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch from e2dac3a to 4953512 Compare December 31, 2025 16:00
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch from 4953512 to f83fae5 Compare February 2, 2026 20:38
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch from f83fae5 to 8757724 Compare May 18, 2026 14:15
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch from 8757724 to 2b4f206 Compare July 20, 2026 21:34
@renovate
renovate Bot force-pushed the renovate/bindgen-0.x branch from 2b4f206 to a5cf57c Compare September 5, 2026 17:27
@renovate renovate Bot changed the title fix(deps): update rust crate bindgen to 0.72.0 fix(deps): update rust crate bindgen to 0.73.0 Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant