objc2-metal-kit 0.3.0

Bindings to the MetalKit framework
Documentation
[dependencies.block2]
default-features = false
features = ["alloc"]
optional = true
version = "0.6.0"

[dependencies.objc2]
default-features = false
features = ["std"]
version = "0.6.0"

[dependencies.objc2-core-foundation]
default-features = false
features = ["CFCGTypes", "objc2"]
optional = true
version = "0.3.0"

[dependencies.objc2-core-graphics]
default-features = false
features = ["CGColorSpace", "CGImage", "objc2"]
optional = true
version = "0.3.0"

[dependencies.objc2-foundation]
default-features = false
features = ["alloc"]
version = "0.3.0"

[dependencies.objc2-metal]
default-features = false
version = "0.3.0"

[dependencies.objc2-model-io]
default-features = false
features = ["MDLAsset", "MDLMesh", "MDLMeshBuffer", "MDLObject", "MDLTexture", "MDLVertexDescriptor"]
optional = true
version = "0.3.0"

[dependencies.objc2-quartz-core]
default-features = false
features = ["CALayer", "CAMetalLayer", "objc2-metal"]
optional = true
version = "0.3.0"

[features]
MTKDefines = []
MTKModel = ["objc2-foundation/NSArray", "objc2-foundation/NSError", "objc2-foundation/NSObject", "objc2-foundation/NSString", "objc2-metal/MTLAllocation", "objc2-metal/MTLBuffer", "objc2-metal/MTLDevice", "objc2-metal/MTLRenderCommandEncoder", "objc2-metal/MTLResource", "objc2-metal/MTLStageInputOutputDescriptor", "objc2-metal/MTLVertexDescriptor"]
MTKTextureLoader = ["objc2-foundation/NSArray", "objc2-foundation/NSBundle", "objc2-foundation/NSData", "objc2-foundation/NSDictionary", "objc2-foundation/NSError", "objc2-foundation/NSString", "objc2-foundation/NSURL", "objc2-metal/MTLAllocation", "objc2-metal/MTLDevice", "objc2-metal/MTLResource", "objc2-metal/MTLTexture"]
MTKView = ["objc2-foundation/NSCoder", "objc2-foundation/NSGeometry", "objc2-foundation/NSObject", "objc2-foundation/objc2-core-foundation", "objc2-metal/MTLAllocation", "objc2-metal/MTLDevice", "objc2-metal/MTLPixelFormat", "objc2-metal/MTLRenderPass", "objc2-metal/MTLResource", "objc2-metal/MTLTexture"]
alloc = []
block2 = ["dep:block2"]
default = ["std", "MTKDefines", "MTKModel", "MTKTextureLoader", "MTKView", "block2", "objc2-app-kit", "objc2-core-foundation", "objc2-core-graphics", "objc2-model-io", "objc2-quartz-core"]
objc2-app-kit = ["dep:objc2-app-kit"]
objc2-core-foundation = ["dep:objc2-core-foundation"]
objc2-core-graphics = ["dep:objc2-core-graphics"]
objc2-model-io = ["dep:objc2-model-io"]
objc2-quartz-core = ["dep:objc2-quartz-core"]
std = ["alloc"]

[lib]
name = "objc2_metal_kit"
path = "src/lib.rs"

[lints.clippy]
ptr_as_ptr = "warn"
redundant_feature_names = "allow"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_copy_implementations = "warn"
non_ascii_idents = "deny"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"

[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["api-bindings", "development-tools::ffi", "external-ffi-bindings", "os::macos-apis"]
description = "Bindings to the MetalKit framework"
edition = "2021"
keywords = ["cocoa", "apple", "framework", "macos", "ios"]
license = "Zlib OR Apache-2.0 OR MIT"
name = "objc2-metal-kit"
readme = "README.md"
repository = "https://github.com/madsmtm/objc2"
rust-version = "1.71"
version = "0.3.0"

[package.metadata.docs.rs]
default-target = "aarch64-apple-darwin"
rustc-args = ["--cfg", "docsrs"]
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-tvos", "aarch64-apple-ios-macabi", "aarch64-apple-visionos"]

[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
default-features = false
features = ["NSAccessibilityProtocols", "NSAnimation", "NSAppearance", "NSDragging", "NSGraphics", "NSResponder", "NSUserInterfaceItemIdentification", "NSView"]
optional = true
version = "0.3.0"