From 6602fdc869e599b9793eca05f03c2150cdc121f0 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 23 Jan 2024 14:35:45 +0100 Subject: [PATCH] `eframe`: enable some default backends for `wgpu` --- Cargo.lock | 1 + crates/eframe/Cargo.toml | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 7cf24278364..f88634fd456 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4261,6 +4261,7 @@ dependencies = [ "arrayvec", "ash", "bitflags 2.4.0", + "block", "cfg_aliases", "core-graphics-types", "glow", diff --git a/crates/eframe/Cargo.toml b/crates/eframe/Cargo.toml index c3158ee4e10..6b2a6f32bb6 100644 --- a/crates/eframe/Cargo.toml +++ b/crates/eframe/Cargo.toml @@ -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]