Skip to content

Move to windows-core and windows-bindgen 0.101 - #100

Merged
HEnquist merged 4 commits into
drop-umbrella-windowsfrom
try-windows-0.101
Nov 30, 2026
Merged

HEnquist merged 4 commits into
drop-umbrella-windowsfrom
try-windows-0.101

Conversation

@HEnquist

@HEnquist HEnquist commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Moves #74 to windows-core and windows-bindgen 0.101.

  • Generator: .flat() is the default now, and .full() keeps the free function wrappers that return a Result
  • Interface methods take the output as a plain pointer and return an HRESULT, the new private out() and out_interface() helpers turn those back into a Result
  • The _Impl callbacks return an HRESULT
  • HANDLE, REFERENCE_TIME and VARTYPE are plain aliases, and the unions take their C tag names
  • GetChannelsPeakValues takes a count and a pointer, so the slice wrapper and the clippy ban are gone
  • No change to the public API

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 HEnquist changed the title Try windows-core and windows-bindgen 0.101 from git Move to windows-core and windows-bindgen 0.101 Nov 30, 2026
@HEnquist
HEnquist marked this pull request as ready for review November 30, 2026 21:07
@HEnquist
HEnquist merged commit 6958477 into drop-umbrella-windows Nov 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant