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

Port to windows-sys v0.48.0 #2842

Merged
merged 3 commits into from
Jun 3, 2023

Conversation

notgull
Copy link
Member

@notgull notgull commented Jun 3, 2023

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

Should fix the cargo deny errors we've been getting on #2812

Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could likely alias, but probably changing HINSTANCE to HMODULE should do it.

@@ -149,6 +149,9 @@ pub fn is_minimized(window: HWND) -> bool {
unsafe { IsIconic(window) != false.into() }
}

#[allow(clippy::upper_case_acronyms)]
pub type HINSTANCE = isize;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was said that HMODULE is the same as HINSTANCE nowadays, the difference was only on 16bit windows, so we likely should use HMODULE.

https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types

@@ -60,6 +60,7 @@ And please only add new entries to the top of this list, right below the `# Unre
- On Web, fix pointer button events not being processed when a buttons is already pressed.
- **Breaking:** Updated `bitflags` crate version to `2`, which changes the API on exposed types.
- On Web, handle coalesced pointer events, which increases the resolution of pointer inputs.
- On Windows, port to `windows-sys` version 0.48.0.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's meaningful to users. Though the changelog entries have conflicts.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disagree; windows-sys version churn has been a frequent enough problem that's been resolved as of version 0.48.0 (at least for the time being). Knowledge that we are using this new version may be valuable to users trying to avoid windows-sys version churn.

@notgull notgull force-pushed the windows-sys-0.48 branch from 7c037f1 to fe7f498 Compare June 3, 2023 15:35
@msiglreith msiglreith merged commit 642ce2b into rust-windowing:master Jun 3, 2023
@notgull notgull deleted the windows-sys-0.48 branch June 3, 2023 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants