Cargo Features

[dependencies]
objc2-metal-kit = { version = "0.2.2", default-features = false, features = ["std", "alloc", "all", "block2", "objc2-app-kit", "objc2-quartz-core", "MTKDefines", "MTKModel", "MTKTextureLoader", "MTKView"] }
default = std

The std feature is set by default whenever objc2-metal-kit is added without default-features = false somewhere in the dependency tree.

std default = alloc

Currently not possible to turn off, put here for forwards compatibility.

Enables std of optional block2, objc2, optional objc2-app-kit, objc2-foundation, objc2-metal, and optional objc2-quartz-core

alloc std

Enables alloc of optional block2, objc2, optional objc2-app-kit, objc2-foundation, objc2-metal, and optional objc2-quartz-core

all = MTKDefines, MTKModel, MTKTextureLoader, MTKView, block2, objc2-app-kit, objc2-quartz-core
block2 all?

Enables block2, block2 of objc2-foundation, objc2-metal, optional objc2-app-kit, and optional objc2-quartz-core

Affects MTKTextureLoader::MTKTextureLoaderCallback, MTKTextureLoader::MTKTextureLoaderArrayCallback

objc2-app-kit all?

Enables objc2-app-kit

objc2-quartz-core all?

Enables objc2-quartz-core, objc2-quartz-core of optional objc2-app-kit

MTKDefines all?
MTKModel all?

Enables NSArray, NSObject and NSString of objc2-foundation, MTLBuffer, MTLDevice, MTLRenderCommandEncoder, MTLResource and MTLStageInputOutputDescriptor of objc2-metal

MTKTextureLoader all?

Enables NSArray, NSBundle, NSData, NSDictionary, NSError, NSGeometry, NSString and NSURL of objc2-foundation, MTLDevice, MTLResource and MTLTexture of objc2-metal, NSGraphics of optional objc2-app-kit

MTKView all?

Enables NSCoder, NSGeometry and NSObject of objc2-foundation, MTLDevice, MTLDrawable, MTLPixelFormat, MTLRenderPass, MTLResource and MTLTexture of objc2-metal, NSAccessibilityProtocols, NSAnimation, NSAppearance, NSDragging, NSResponder, NSUserInterfaceItemIdentification and NSView of optional objc2-app-kit, CALayer and CAMetalLayer of optional objc2-quartz-core