Repository navigation
Move to windows-core and windows-bindgen 0.101 - #100
Merged
Merged
Conversation
Both are pinned to windows-rs master at c614bab27346, since 0.101 is not released yet. - The generator drops .flat(), which is now the default, and uses .full() to keep the free function wrappers that return a Result. - Most interface methods now take the output as a plain pointer and return an HRESULT. The new private helpers out() and out_interface() turn those calls back into a Result. - The _Impl callbacks return an HRESULT, and the tests call the generated callback methods with a count and a pointer. - HANDLE, REFERENCE_TIME and VARTYPE are plain aliases now, and the unions take their C tag names. - The AUDCLNT_E_ codes come as HRESULT, the AUDCLNT_S_ codes still as an i32, and WAIT_OBJECT_0 as an NTSTATUS that is retyped to u32. - GetChannelsPeakValues takes a count and a pointer, so the slice wrapper and the clippy ban on the generated method are gone.
Structs with raw pointer fields now get a zeroed Default impl instead of the derive. No other change to the generated bindings.
The generated bindings are the same as from the pinned master commit.
HEnquist
marked this pull request as ready for review
November 30, 2026 21:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Moves #74 to windows-core and windows-bindgen 0.101.
.flat()is the default now, and.full()keeps the free function wrappers that return aResultHRESULT, the new privateout()andout_interface()helpers turn those back into aResult_Implcallbacks return anHRESULTHANDLE,REFERENCE_TIMEandVARTYPEare plain aliases, and the unions take their C tag namesGetChannelsPeakValuestakes a count and a pointer, so the slice wrapper and the clippy ban are gone