Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to windows-bindgen #1202
Switch to windows-bindgen #1202
Changes from all commits
a398b37
80734fc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we comparing this on a line-by-line basis? To get around the
\r\n
vs\n
differences? If so, please add a comment to that effect.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure it's that, all files should be checked in to the repo with
\n
but because the test runs on Windows (windows-bindgen
runs just fine on Linux, fwiw!) the output will be\r\n
.Personally I'd just run this test in the CI with a helpful "how to regenerate" message and a
git status --porcelain
check for files that may not be checked in, as linked above:Traverse-Research/amd-ext-d3d-rs@d5ba122#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fR62
(Note that this line changed a bit on main because we're back to
cargo r -p api_gen
.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just rebooted from Linux to Windows to work on this 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MarijnS95 I have to admit I am pretty bad at all this 😄. Is it easy for you to change this PR to something better?
And thanks for helping out already!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least you can execute the generated code that way, unless cross-compiling with
--target x86_64-pc-windows-gnu
and running it inwine
:)Not at all, I'm a Linux user keeping
windows-rs
"in check" around our dependencies to support a primarily (exclusively?) Windows-based dev team, so I just happen to look at random PRs but otherwise have no reviewer/maintainer rights here whatsoever.