Cargo Features

[dependencies]
objc2-metal-kit = { version = "0.2.0", default-features = false, features = ["std", "alloc", "unstable-docsrs", "all", "block2", "objc2-app-kit", "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 objc2

alloc std

Enables alloc of objc2

unstable-docsrs

For better documentation on docs.rs

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

Enables block2

Affects MTKTextureLoader::MTKTextureLoaderCallback, MTKTextureLoader::MTKTextureLoaderArrayCallback

objc2-app-kit all?

Enables 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, MTLPixelFormat, MTLRenderPass, MTLResource and MTLTexture of objc2-metal, NSAccessibilityProtocols, NSAnimation, NSAppearance, NSDragging, NSResponder, NSUserInterfaceItemIdentification and NSView of optional objc2-app-kit