Skip to content

[hal-0.3] Upgrade to raw-window-handle v0.3.0 #3037

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

Closed
wants to merge 2 commits into from

Conversation

antonok-edm
Copy link
Contributor

PR checklist:

  • make succeeds (on *nix)
  • make reftests succeeds
  • tested examples with the following backends: vulkan
  • rustfmt run on changed code

In the process, I've also added support for building a Vulkan surface using a raw XCB handle.

Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

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

Thank you for the PR!
Unfortunately, we can't simply update this dependency to another semver-incompatible version, since it's a public dependency, and the public types we use (I assume) are not semver-hacked.

We'd have to keep the 0.1 dependency for hal-0.3. We can add add other entry points that work with 0.3 dependency.
Good thing is that hal-0.4 is just around the corner, so if we have this in master, we'll get it with the release.

@antonok-edm
Copy link
Contributor Author

@kvark how does the versioning work for this repo? I just added it to hal-0.3 because it's the only branch with the raw-window-handle dependency.

@kvark
Copy link
Member

kvark commented Oct 9, 2019

@antonok-edm the "hal-0.3" branch contains fixes to "hal-0.3" crate and dependencies (e.g. backends). The"master" branch contains latest and greatest stuff. A change to bring raw-window-handle to "master" is #2967, and it has unfortunately stalled. Big thanks if you can get it rolling!

bors bot added a commit that referenced this pull request Oct 9, 2019
3038:  Replace `winit` with `raw-window-handle` in backend crates r=kvark a=antonok-edm

Fixes #2956, closes #2967
PR checklist:
- [x] `make` succeeds (on *nix)
- [x] `make reftests` succeeds
- [x] tested examples with the following backends: `vulkan`
- [x] `rustfmt` run on changed code

I've rebased @jchapman127's work off of the latest `master`. Unfortunately, `winit` has not yet updated past `raw-window-handle` v0.1.2, so #3037 will have to wait. Anything else that needs to be done?

Co-authored-by: James Chapman <[email protected]>
@zakarumych zakarumych changed the base branch from hal-0.3 to master October 17, 2019 21:09
@zakarumych zakarumych changed the base branch from master to hal-0.3 October 17, 2019 21:09
@zakarumych
Copy link

zakarumych commented Oct 17, 2019

Now it's time to upgrade master to raw-window-handle 0.3

@antonok-edm
Copy link
Contributor Author

Ah, there's no way to change which branch a PR merges into... I can create a new one

@zakarumych
Copy link

There is. Use Edit button on the top-right

@antonok-edm
Copy link
Contributor Author

Oh... that's news to me 😅

bors bot added a commit that referenced this pull request Oct 19, 2019
3050: Upgrade to raw-window-handle v0.3 r=kvark a=antonok-edm

Reopening #3037 against `master`, for merge whenever ready.

Note that compiling examples currently doesn't work because `winit` still imports the old version of `raw-window-handle`; the two versions of the traits are incompatible.

PR checklist:
- [x] `make` succeeds (on *nix)
- [x] `make reftests` succeeds
- [x] tested examples with the following backends: `vulkan`
- [x] `rustfmt` run on changed code


Co-authored-by: Anton Lazarev <[email protected]>
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.

3 participants