From 85e2141355adb37cd58f90a5fcd889e14a659a91 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 22 Sep 2023 14:58:33 +0200 Subject: [PATCH] Fix using trunk version on mac (#4164) Overriding the metal version in the workspace Cargo.toml using a patch section does not work for projects building against the trunk version: wgpu = { git = "https://github.com/gfx-rs/wgpu", branch = "trunk" } Instead specify the metal dependencies only once in wgpu-hal. --- Cargo.toml | 9 --------- wgpu-hal/Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 10378fc23..b10762248 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -100,12 +100,6 @@ wgpu-test = { version = "0.17", path = "./tests"} wgpu-types = { version = "0.17.0", path = "./wgpu-types" } winit = { version = "0.28.6", features = [ "android-native-activity" ] } -# Metal dependencies -block = "0.1" -metal = "0.26.0" -objc = "0.2.5" -core-graphics-types = "0.1" - # Vulkan dependencies ash = "0.37.3" gpu-alloc = "0.6" @@ -157,9 +151,6 @@ termcolor = "1.3.0" #naga = { path = "../naga" } #glow = { path = "../glow" } #d3d12 = { path = "../d3d12-rs" } -#metal = { path = "../metal-rs" } -#metal = { path = "../metal-rs" } -metal = { git = "https://github.com/gfx-rs/metal-rs/", rev = "d24f1a4" } # More timer support via https://github.com/gfx-rs/metal-rs/pull/280 #web-sys = { path = "../wasm-bindgen/crates/web-sys" } #js-sys = { path = "../wasm-bindgen/crates/js-sys" } #wasm-bindgen = { path = "../wasm-bindgen" } diff --git a/wgpu-hal/Cargo.toml b/wgpu-hal/Cargo.toml index 3db736361..3cc69975c 100644 --- a/wgpu-hal/Cargo.toml +++ b/wgpu-hal/Cargo.toml @@ -103,7 +103,7 @@ d3d12 = { version = "0.7", features = ["libloading"], optional = true } # backend: Metal block = { version = "0.1", optional = true } -metal = "0.26.0" +metal = { git = "https://github.com/gfx-rs/metal-rs/", rev = "d24f1a4" } # More timer support via https://github.com/gfx-rs/metal-rs/pull/280 objc = "0.2.5" core-graphics-types = "0.1"