Skip to content

Bump bindgen to 0.72 for LLVM 22 compatibility#150

Merged
ldm0 merged 1 commit intoCCExtractor:masterfrom
iovxw:bindgen
Apr 10, 2026
Merged

Bump bindgen to 0.72 for LLVM 22 compatibility#150
ldm0 merged 1 commit intoCCExtractor:masterfrom
iovxw:bindgen

Conversation

@iovxw
Copy link
Copy Markdown
Contributor

@iovxw iovxw commented Apr 10, 2026

Bumps bindgen from 0.71 to 0.72 to fix compilation on systems with LLVM/Clang 22.

Problem

LLVM 22 introduced a change in AST representation (llvm/llvm-project#147835) that
causes bindgen 0.71 to incorrectly generate opaque types for several FFmpeg structs
(e.g., AVFormatContext, AVBitStreamFilter). This makes any crate depending on
rusty_ffmpeg fail to compile on LLVM 22 systems.

The issue was reported and fixed in bindgen 0.72.1:

Testing

  • Verified on LLVM 22.1.2 with FFmpeg 6.1.1 headers
  • The bindgen 0.72 release is backward compatible with older LLVM versions,
    so this should not break CI on Ubuntu with older clang

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the crate’s build-time binding generation dependency to address bindgen incompatibilities with LLVM/Clang 22, preventing incorrect opaque type generation for some FFmpeg structs on those systems.

Changes:

  • Bump bindgen build-dependency from 0.71 to 0.72 in Cargo.toml.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Cargo.toml
@ldm0 ldm0 merged commit 8050eba into CCExtractor:master Apr 10, 2026
23 checks passed
@ldm0
Copy link
Copy Markdown
Member

ldm0 commented Apr 10, 2026

Thanks, will release tonight.

@iovxw iovxw deleted the bindgen branch April 10, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants