1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

egui-wgpu: turn off the default features of wgpu (#3875)

This makes all `wgpu` features opt-in for `egui-wgpu` users.

For `eframe`, I opted to enable some `wgpu` features so users can still
use `eframe` without having to also opt-in to extra ewgpu features
(eframe is batteries-included).
This commit is contained in:
Emil Ernerfeldt
2024-01-24 09:43:40 +01:00
committed by GitHub
parent 4d1a736016
commit 3a8e2348a5
4 changed files with 8 additions and 23 deletions

View File

@@ -168,7 +168,12 @@ pollster = { version = "0.3", optional = true } # needed for wgpu
glutin = { version = "0.31", optional = true }
glutin-winit = { version = "0.4", optional = true }
puffin = { workspace = true, optional = true }
wgpu = { workspace = true, optional = true }
wgpu = { workspace = true, optional = true, features = [
# Let's enable some backends so that users can use `eframe` out-of-the-box
# without having to explicitly opt-in to backends
"metal",
"webgpu",
] }
# mac:
[target.'cfg(any(target_os = "macos"))'.dependencies]