From 6780397d49c218245adc65acd7c5fc995504c3a2 Mon Sep 17 00:00:00 2001 From: chyyran Date: Sun, 11 Feb 2024 18:01:13 -0500 Subject: [PATCH] rt(mtl): fix build on windows --- librashader-runtime-metal/Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/librashader-runtime-metal/Cargo.toml b/librashader-runtime-metal/Cargo.toml index d95a0a8..8ddee05 100644 --- a/librashader-runtime-metal/Cargo.toml +++ b/librashader-runtime-metal/Cargo.toml @@ -20,8 +20,7 @@ librashader-preprocess = { path = "../librashader-preprocess", version = "0.2.0- librashader-reflect = { path = "../librashader-reflect", version = "0.2.0-beta.7" } librashader-runtime = { path = "../librashader-runtime" , version = "0.2.0-beta.7" } -icrate = { version = "0.1.0" , features = [ "Metal", "Metal_all" ]} -objc2 = { version = "0.5.0", features = ["apple"] } + rustc-hash = "1.1.0" thiserror = "1.0" array-concat = "0.5.2" @@ -32,3 +31,7 @@ bytemuck = "1.14.3" [package.metadata.docs.rs] features = ["librashader-cache/docsrs"] + +[target.'cfg(target_vendor="apple")'.dependencies] +icrate = { version = "0.1.0" , features = [ "Metal", "Metal_all" ]} +objc2 = { version = "0.5.0", features = ["apple"] } \ No newline at end of file