Skip to content

Upgrade raw-window-handle to 0.5.0#5

Merged
msiglreith merged 2 commits intorust-windowing:masterfrom
MarijnS95:rwh-0.5
Jul 29, 2022
Merged

Upgrade raw-window-handle to 0.5.0#5
msiglreith merged 2 commits intorust-windowing:masterfrom
MarijnS95:rwh-0.5

Conversation

@MarijnS95
Copy link
Copy Markdown
Member

No description provided.

It seems there's no pattern of `let _: ()`/`let (): ()`/`let (): _`
binding that circumnavigates this clippy warning: ignore it instead.
Comment on lines 6 to 10

#[cfg(target_os = "macos")]
pub mod appkit;
#[cfg(target_os = "ios")]
pub mod uikit;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@msiglreith I thought I left a comment here but that was on your 0.4 PR, thoughts?

@msiglreith I've been looking into reviving the related ash-window PR now that raw-window-handle 0.5 is out and used in winit 0.27, and stumbled upon these cfgs. According to https://github.com/rust-windowing/raw-window-handle/pull/70/files#diff-b1a35a68f14e696205874893c07fd24fdb88882b47c23cc0e0c80a30c7d53759 (surprisingly the author detailed/justified nothing of this in PR/commit messages...) it should be possible to use these across macos and ios now when targeting "Mac Catalyst"?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As it passes builds I'm happy with it, given these are not strictly iOS/macOS anymore (as it was in the past).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note that I moved these to the top of the file with #![cfg(any(target_os = "macos", target_os = "ios"))], since it's still all limited to Apple platforms.

@msiglreith msiglreith merged commit 12acf72 into rust-windowing:master Jul 29, 2022
@msiglreith
Copy link
Copy Markdown
Member

Thanks, version 0.3.0 published to crates.io

@MarijnS95 MarijnS95 deleted the rwh-0.5 branch July 29, 2022 20:32
@MarijnS95
Copy link
Copy Markdown
Member Author

Thanks, using it now in ash-window 😄

MarijnS95 added a commit to ash-rs/ash that referenced this pull request Sep 23, 2022
* ash-window: Upgrade to raw-window-handle 0.5.0

* Bump `raw-window-metal` to recently-released `0.3`

rust-windowing/raw-window-metal#5

* examples: Bump `winit` to `0.27.1` to resolve our MSRV tests

While the examples technically aren't part of our MSRV requirement (it's
nice, but core crate compatibility is much more important), it's
annoying to exempt these especially now that `winit` removed some
unneeded MSRV 1.60/1.61 requirements.

* Take `Raw{Display,Window}Handle` directly instead of through trait
MarijnS95 added a commit to ash-rs/ash that referenced this pull request Sep 23, 2022
* ash-window: Upgrade to raw-window-handle 0.5.0

* Bump `raw-window-metal` to recently-released `0.3`

rust-windowing/raw-window-metal#5

* examples: Bump `winit` to `0.27.1` to resolve our MSRV tests

While the examples technically aren't part of our MSRV requirement (it's
nice, but core crate compatibility is much more important), it's
annoying to exempt these especially now that `winit` removed some
unneeded MSRV 1.60/1.61 requirements.

* Take `Raw{Display,Window}Handle` directly instead of through trait
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.

2 participants