Skip to content

rust: bump bindgen to 0.72.1 for libclang 22 compatibility - #260

Merged
eparshut merged 5 commits into
intel:masterfrom
eparshut:rustfix
Nov 3, 2026
Merged

eparshut merged 5 commits into
intel:masterfrom
eparshut:rustfix

Conversation

@eparshut

@eparshut eparshut commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

The ubuntu-latest runner moved to Ubuntu 26.04, which ships libclang 22. With it, bindgen 0.69.5 generates the forward-referenced ___itt_track struct as an empty placeholder, so test_ittnotify_bindings_up_to_date fails.

Bump bindgen to 0.72.1, which fixes that (rust-lang/rust-bindgen#3278), and regenerates the Linux, macOS and Windows bindings. bindgen's target Rust version is pinned to 1.70, so the output doesn't depend on the local rustc and ittapi-sys still builds with older compilers.

Also fix rust clippy warnings: allow clippy::doc_markdown, because the generated doc comments come straight from the C headers.

The ubuntu-latest runner (Ubuntu 26.04) ships libclang 22, with which bindgen 0.69.5
treats the forward-referenced ___itt_track struct as opaque, failing the
bindings-up-to-date test. bindgen 0.72.1 fixes this (rust-lang/rust-bindgen#3278).

Regenerate the linux, macos and windows bindings for the new bindgen output format.
The generated bindings carry doc comments verbatim from the C headers, which trigger
clippy::doc_markdown; they cannot be fixed by hand without breaking the
bindings-up-to-date test.
bindgen 0.72 targets the rustc running it by default, which made the generated
the output is reproducible and ittapi-sys keeps building with older compilers.
@eparshut
eparshut requested a review from a team November 3, 2026 15:22
@eparshut
eparshut merged commit d223cd8 into intel:master Nov 3, 2026
21 checks passed
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.

2 participants