From 4588302a1fc53ef1b2794a390b513084db4b8d45 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Tue, 21 Jan 2025 22:41:32 +0100 Subject: [PATCH] metal: prepare for `objc2` frameworks v0.3 These will have a bunch of default features enabled, so let's pre-emptively disable them. --- blade-graphics/Cargo.toml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/blade-graphics/Cargo.toml b/blade-graphics/Cargo.toml index c28c285..e2497cd 100644 --- a/blade-graphics/Cargo.toml +++ b/blade-graphics/Cargo.toml @@ -21,8 +21,12 @@ raw-window-handle = "0.6" [target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies] objc2 = "0.5" -objc2-foundation = { version = "0.2", features = ["NSArray"] } -objc2-metal = { version = "0.2", features = [ +objc2-foundation = { version = "0.2", default-features = false, features = [ + "std", + "NSArray", +] } +objc2-metal = { version = "0.2", default-features = false, features = [ + "std", "MTLTypes", "MTLPixelFormat", "MTLResource", @@ -55,7 +59,8 @@ objc2-metal = { version = "0.2", features = [ "MTLCaptureScope", "block2", ] } -objc2-quartz-core = { version = "0.2", features = [ +objc2-quartz-core = { version = "0.2", default-features = false, features = [ + "std", "objc2-metal", "CALayer", "CAMetalLayer", @@ -63,7 +68,8 @@ objc2-quartz-core = { version = "0.2", features = [ naga = { workspace = true, features = ["msl-out"] } [target.'cfg(target_os = "macos")'.dependencies] -objc2-app-kit = { version = "0.2", features = [ +objc2-app-kit = { version = "0.2", default-features = false, features = [ + "std", "objc2-quartz-core", "NSResponder", "NSView", @@ -71,7 +77,8 @@ objc2-app-kit = { version = "0.2", features = [ ] } [target.'cfg(target_os = "ios")'.dependencies] -objc2-ui-kit = { version = "0.2", features = [ +objc2-ui-kit = { version = "0.2", default-features = false, features = [ + "std", "objc2-quartz-core", "UIResponder", "UIView",