# 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 = "2021"
rust-version = "1.76"
name = "apple-metal"
version = "0.1.0"
authors = ["Per Johansson <per@doom.fish>"]
build = false
include = [
    "src/**/*",
    "Cargo.toml",
    "README.md",
    "LICENSE-*",
    "CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's Metal framework — GPU access + IOSurface zero-copy texture interop on macOS"
homepage = "https://github.com/doom-fish/apple-metal-rs"
readme = "README.md"
keywords = [
    "metal",
    "gpu",
    "iosurface",
    "macos",
    "apple",
]
categories = [
    "api-bindings",
    "os::macos-apis",
    "graphics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/apple-metal-rs"

[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = [
    "aarch64-apple-darwin",
    "x86_64-apple-darwin",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[badges.maintenance]
status = "actively-developed"

[features]
default = ["iosurface"]
iosurface = ["dep:apple-cf"]

[lib]
name = "apple_metal"
crate-type = ["lib"]
path = "src/lib.rs"

[dependencies.apple-cf]
version = "0.1.1"
features = ["iosurface"]
optional = true
default-features = false

[dev-dependencies]

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

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

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

[lints.rust]

[profile.release]
debug = 2
strip = "none"
