Skip to content

Add OS matrix to Rust build and upgrade bindgen#3594

Merged
tenderlove merged 5 commits intoruby:mainfrom
Shopify:vs_fix_windows_build
Jul 18, 2025
Merged

Add OS matrix to Rust build and upgrade bindgen#3594
tenderlove merged 5 commits intoruby:mainfrom
Shopify:vs_fix_windows_build

Conversation

@vinistock
Copy link
Collaborator

@vinistock vinistock commented Jul 3, 2025

Compiling the Rust crate fails on Windows while generating bindings at the moment. I want to try to upgrade bindgen to the latest version to see if the issue has been fixed.

Also, this PR adds an OS matrix to the Rust builds, so that we can catch build issues sooner. This PR is easier to review by commit.

Notes:

  • As listed in the docs the wasm32-wasi target has been renamed to wasm32-wasip1
  • There were many new clippy violations. I fixed them in a separate commit, following clippy's instructions. None of them required any modifications outside of the recommendations
  • Compiling gems on Ruby head currently fails on Windows, so I changed the Rust bindings workflows to use 3.4
  • The WASM example doesn't support Windows and so I skipped running it on that OS

@vinistock vinistock marked this pull request as draft July 3, 2025 14:38
@vinistock vinistock force-pushed the vs_fix_windows_build branch 7 times, most recently from a4babe5 to fe820bb Compare July 3, 2025 16:57
@vinistock vinistock force-pushed the vs_fix_windows_build branch from fe820bb to ab22c39 Compare July 3, 2025 17:11
@vinistock vinistock force-pushed the vs_fix_windows_build branch from cd8bb9c to 3251900 Compare July 4, 2025 14:54
@vinistock vinistock marked this pull request as ready for review July 4, 2025 14:59
@rafaelfranca rafaelfranca added the Need another review Need an extra review label Jul 16, 2025
@tenderlove tenderlove merged commit c99cb31 into ruby:main Jul 18, 2025
58 checks passed
@vinistock vinistock deleted the vs_fix_windows_build branch July 18, 2025 17:53
vinistock added a commit to Shopify/rubydex that referenced this pull request Nov 20, 2025
Closes #68

It seems that ruby/prism#3594 _did_ fix the
Windows build 🎉. This PR re-enables it so that we don't accidentally add
Windows incompatible code.

Most of the fixes are related to assuming forward slashes in file paths
or not accounting for the carriage return character where it may happen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Need another review Need an extra review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants