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

Add note about resolver requirement #1339

Merged

Conversation

mtkennerly
Copy link
Contributor

If you forget to do this and you're not on Mac (I'm using Windows), you get some nasty errors about Metal being unavailable when you use the default features:

   Compiling wgpu-hal v0.12.5
error: Metal API enabled on non-Apple OS. If your project is not using resolver="2" in Cargo.toml, it should.
  --> C:\Users\mtken\.cargo\registry\src\git.luolix.top-1ecc6299db9ec823\wgpu-hal-0.12.5\src\lib.rs:51:1
   |
51 | compile_error!("Metal API enabled on non-Apple OS. If your project is not using resolver=\"2\" in Cargo.toml, it should.");
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved import `mtl`
 --> C:\Users\mtken\.cargo\registry\src\git.luolix.top-1ecc6299db9ec823\wgpu-hal-0.12.5\src\metal\adapter.rs:1:5
  |
1 | use mtl::{MTLFeatureSet, MTLGPUFamily, MTLLanguageVersion};
  |     ^^^ use of undeclared crate or module `mtl`

[snip]

@hecrj hecrj added this to the 0.4.3 milestone May 9, 2022
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Thanks!

@hecrj hecrj merged commit a5b2c07 into iced-rs:master May 9, 2022
hecrj added a commit that referenced this pull request May 31, 2022
…quirement

Add note about resolver requirement
@hecrj hecrj modified the milestones: 0.4.3, 0.5.0 Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants