You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move bindgen generation from build.rs to api_gen binary
Replace the `generate-bindings` feature + build.rs approach with a
dedicated `api_gen` workspace member binary, following the pattern
used by fidelityfx-rs. Bindings are generated by running
`cargo r -p api_gen` instead of `cargo b -Fgenerate-bindings`.
This pins bindgen to =0.72.1 for reproducible output and removes the
build-dependency from the published crate.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -54,12 +54,12 @@ jobs:
54
54
src/xess/vk.rs
55
55
src/xess/xess.rs
56
56
- name: Generate
57
-
run: cargo b -Fgenerate-bindings
57
+
run: cargo r -p api_gen
58
58
- name: Upload crate source
59
59
uses: actions/upload-artifact@v6
60
60
with:
61
61
name: crate-source
62
62
path: src/
63
63
- name: Diff generated Rust code
64
64
shell: bash
65
-
run: test -z "$(git status --porcelain)" || (echo "::error::Generated files are different, please regenerate with cargo b -Fgenerate-bindings!"; git status; false)
65
+
run: test -z "$(git status --porcelain)" || (echo "::error::Generated files are different, please regenerate with 'cargo r -p api_gen'!"; git status; false)
0 commit comments