# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "mtl-rs"
version = "0.1.13"
authors = ["Eugene Bokhan <eugenebokhan@icloud.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust bindings for Apple's Metal API"
readme = "README.md"
keywords = [
    "metal",
    "graphics",
    "apple",
    "macos",
    "ios",
]
categories = [
    "api-bindings",
    "graphics",
    "os::macos-apis",
    "rendering::graphics-api",
]
license = "MIT"
repository = "https://github.com/computer-graphics-tools/mtl-rs"

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

[[example]]
name = "drawing_a_triangle_with_metal_4"
path = "examples/drawing_a_triangle_with_metal_4/main.rs"

[dependencies.bitflags]
version = "2.11"

[dependencies.block2]
version = "0.6"

[dependencies.dispatch2]
version = "0.3"

[dependencies.objc2]
version = "0.6"

[dependencies.objc2-core-foundation]
version = "0.3"

[dependencies.objc2-foundation]
version = "0.3"

[dependencies.objc2-io-surface]
version = "0.3"

[dev-dependencies.bytemuck]
version = "1.25"
features = ["derive"]

[dev-dependencies.objc2-app-kit]
version = "0.3"
features = [
    "NSView",
    "NSWindow",
    "NSResponder",
    "objc2-quartz-core",
    "objc2-core-foundation",
]

[dev-dependencies.objc2-foundation]
version = "0.3"
features = [
    "NSError",
    "NSString",
]

[dev-dependencies.objc2-quartz-core]
version = "0.3"
features = [
    "CAMetalLayer",
    "CALayer",
    "objc2-metal",
]

[dev-dependencies.raw-window-handle]
version = "0.6"

[dev-dependencies.winit]
version = "0.30"
