Skip to content
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

Extend windows(-core) dependency range to 0.57-0.61 #34

Merged
merged 1 commit into from
Mar 25, 2025
Merged

Conversation

MarijnS95
Copy link
Member

@MarijnS95 MarijnS95 commented Mar 10, 2025

The generated code now uses Ref in native symbol definitions, which is already used in all member functions; unfortunately all Windows code uses transmute_copy() to construct this but it does show that we didn't/don't really need to consume ownership of the device: IUnknown (previously leaked when passed as a device.clone() to a native function that doesn't "consume ownership" of the pointer).

We can remove the heavy checked-in Windows.Win32.winmd which has been available behind --in default in bindings.txt for a while.

Finally, take this chance to update our WinmdGenerator tooling and Windows SDK version.

https://github.com/microsoft/windows-rs/releases/tag/0.62.0
https://github.com/microsoft/windows-rs/releases/tag/63

@MarijnS95 MarijnS95 changed the title Bump windows(-core) crate range to 0.57-0.60 Bump windows(-core) crate range to 0.57-0.61 Mar 25, 2025
@MarijnS95 MarijnS95 requested a review from Athosvk March 25, 2025 11:36
@MarijnS95 MarijnS95 changed the title Bump windows(-core) crate range to 0.57-0.61 Extend windows(-core) crate range to 0.57-0.61 Mar 25, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
The generated code now uses `Ref` in native symbol definitions, which
is already used in all member functions; unfortunately all Windows
code uses `transmute_copy()` to construct this but it does show that we
didn't/don't really need to consume ownership of the `device: IUnknown`
(previously leaked when passed as a `device.clone()` to a native
function that doesn't "consume ownership" of the pointer).

We can remove the heavy checked-in `Windows.Win32.winmd` which has
been available behind `--in default` in `bindings.txt` for a while.

Finally, take this chance to update our `WinmdGenerator` tooling and
Windows SDK version.

https://github.com/microsoft/windows-rs/releases/tag/0.62.0
https://github.com/microsoft/windows-rs/releases/tag/63
@MarijnS95 MarijnS95 changed the title Extend windows(-core) crate range to 0.57-0.61 Extend windows(-core) dependency range to 0.57-0.61 Mar 25, 2025
@MarijnS95 MarijnS95 added this pull request to the merge queue Mar 25, 2025
Merged via the queue into main with commit e85f3b7 Mar 25, 2025
6 checks passed
@MarijnS95 MarijnS95 deleted the windows-0.60 branch March 25, 2025 12:48
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.

None yet

2 participants