From c265b0a79334c1ceaff6a11e2584bce56c5f3c70 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Sat, 30 May 2026 00:51:29 +1000 Subject: [PATCH] ci: pin cbindgen v0.29.2 cbindgen v0.29.3 added support for C23 fixed-type enum syntax unconditionally (mozilla/cbindgen#1156) -- it is gated with #if guards but Python's cffi cannot handle those and so our Python bindings would not build. So, pin the newest release without this feature to make our CI green again (we did not pin the cbindgen version used in our CI so the new update also broke our CI). Signed-off-by: Aleksa Sarai --- .github/workflows/rust.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index efa4991b..44cb57f0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,6 +24,7 @@ name: rust-ci env: RUST_MSRV: &RUST_MSRV "1.63" + CBINDGEN_VERSION: "0.29.2" jobs: codespell: @@ -132,7 +133,7 @@ jobs: with: components: rustfmt,clippy - name: install cbindgen - run: cargo install --force cbindgen + run: cargo install --force --locked cbindgen@${{ env.CBINDGEN_VERSION }} - name: make lint run: make CARGO_NIGHTLY=cargo lint @@ -142,7 +143,7 @@ jobs: - uses: actions/checkout@v6 - uses: dtolnay/rust-toolchain@stable - name: install cbindgen - run: cargo install --force cbindgen + run: cargo install --force --locked cbindgen@${{ env.CBINDGEN_VERSION }} - run: make validate-cbindgen validate-elf-symbols: