Skip to content

Commit

Permalink
metal: prepare for objc2 frameworks v0.3
Browse files Browse the repository at this point in the history
These will have a bunch of default features enabled, so let's
pre-emptively disable them.
  • Loading branch information
madsmtm authored and kvark committed Jan 26, 2025
1 parent 91f2b53 commit 4588302
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions blade-graphics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -55,23 +59,26 @@ 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",
] }
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",
"NSWindow",
] }

[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",
Expand Down

0 comments on commit 4588302

Please sign in to comment.