Source code

Revision control

Copy as Markdown

Other Tools

# 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"
name = "metal"
version = "0.27.0"
authors = ["gfx-rs developers"]
exclude = [
"guide/**/*",
"examples/texture/**/*",
"tests/**/*",
"Cargo.lock",
"target/**/*",
]
description = "Rust bindings for Metal"
documentation = "https://docs.rs/crate/metal"
readme = "README.md"
keywords = [
"metal",
"graphics",
"bindings",
]
license = "MIT OR Apache-2.0"
[package.metadata.docs.rs]
default-target = "x86_64-apple-darwin"
[[example]]
name = "window"
[[example]]
name = "headless-render"
[[example]]
name = "library"
[[example]]
name = "raytracing"
[[example]]
name = "reflection"
[[example]]
name = "caps"
[[example]]
name = "argument-buffer"
[[example]]
name = "bindless"
[[example]]
name = "circle"
path = "examples/circle/main.rs"
[[example]]
name = "compute"
path = "examples/compute/main.rs"
[[example]]
name = "mps"
required-features = ["mps"]
[[example]]
name = "embedded-lib"
path = "examples/compute/embedded-lib.rs"
[[example]]
name = "compute-argument-buffer"
path = "examples/compute/compute-argument-buffer.rs"
[[example]]
name = "bind"
[[example]]
name = "events"
required-features = ["dispatch"]
[[example]]
name = "fence"
[dependencies]
bitflags = "2"
block = "0.1.6"
core-graphics-types = "0.1.3"
foreign-types = "0.5"
log = "0.4"
paste = "1"
[dependencies.dispatch]
version = "0.2"
optional = true
[dependencies.objc]
version = "0.2.4"
[dev-dependencies]
cocoa = "0.24.0"
cty = "0.2.1"
glam = "0.22"
png = "0.17"
rand = "0.8"
sema = "0.1.4"
winit = "0.27"
[features]
default = ["link"]
link = ["core-graphics-types/link"]
mps = []
private = []
[workspace]
members = ["examples/texture"]