You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eframe = { version = "0.26", default-features = false, features = ["wgpu"] }
Errors with:
Compiling eframe v0.26.2
error[E0599]: no variant or associated item named `Canvas` found for enum `SurfaceTarget` in the current scope
--> /Users/cameron/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eframe-0.26.2/src/web/web_painter_wgpu.rs:168:50
|
168 | .create_surface(wgpu::SurfaceTarget::Canvas(canvas.clone()))
| ^^^^^^ variant or associated item not found in `SurfaceTarget<'_>`
For more information about this error, try `rustc --explain E0599`.
Checking eframe v0.26.2 (https://github.com/emilk/egui?branch=master#e29022ef)
error[E0599]: no variant or associated item named `Canvas` found for enum `SurfaceTarget` in the current scope
--> /Users/cameron/.cargo/git/checkouts/egui-5e4507fa4153be06/e29022e/crates/eframe/src/web/web_painter_wgpu.rs:168:50
|
168 | .create_surface(wgpu::SurfaceTarget::Canvas(canvas.clone()))
| ^^^^^^ variant or associated item not found in `SurfaceTarget<'_>`
For more information about this error, try `rustc --explain E0599`.
It looks like the webgpu feature of the wgpu crate is no longer selected from egui-wgpu:
I'm targeting wasm32 and when upgrading the eframe 0.26, it does not compile.
The
.cargo/config
From
Cargo.toml
Errors with:
Also the latest from master
Gives the same error:
It looks like the
webgpu
feature of thewgpu
crate is no longer selected from egui-wgpu:https://docs.rs/crate/egui-wgpu/0.26.2/source/Cargo.toml
https://docs.rs/crate/egui-wgpu/0.26.0/source/Cargo.toml
Prior, it was not setting
default-features = false
.https://docs.rs/crate/egui-wgpu/0.25.0/source/Cargo.toml
The text was updated successfully, but these errors were encountered: