-
Notifications
You must be signed in to change notification settings - Fork 544
/
Copy pathCargo.toml
69 lines (62 loc) · 1.9 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[package]
name = "gfx-backend-metal"
version = "0.9.0"
description = "Metal API backend for gfx-rs"
homepage = "https://github.com/gfx-rs/gfx"
repository = "https://github.com/gfx-rs/gfx"
keywords = ["graphics", "gamedev"]
license = "MIT OR Apache-2.0"
authors = ["The Gfx-rs Developers"]
readme = "README.md"
documentation = "https://docs.rs/gfx-backend-metal"
workspace = "../../.."
edition = "2018"
build = "build/build.rs"
[features]
#TODO: add a feature to enable `profiling`, so that we can CI test it
default = []
signpost = []
cross = ["spirv_cross", "auxil", "naga/spv-out"]
pipeline-cache = ["tempfile", "serde", "bincode", "naga/serialize", "naga/deserialize", "naga/spv-out"]
[lib]
name = "gfx_backend_metal"
[dependencies]
hal = { package = "gfx-hal", path = "../../hal", version = "0.9" }
range-alloc = { path = "../../auxil/range-alloc", version = "0.1" }
arrayvec = "0.5"
bitflags = "1.0"
copyless = "0.1.4"
core-graphics-types = "0.1.1"
fxhash = "0.2.1"
log = "0.4"
dispatch = { version = "0.2", optional = true }
metal = { version = "0.23", features = ["private"] }
foreign-types = "0.3"
objc = "0.2.5"
block = "0.1"
cocoa-foundation = "0.1"
parking_lot = "0.11"
storage-map = "0.3"
raw-window-handle = "0.3"
profiling = { version = "1", default-features = false }
tempfile = { version = "3.2", optional = true }
serde = { version = "1", features = ["serde_derive"], optional = true }
bincode = { version = "1", optional = true }
[dependencies.auxil]
package = "gfx-auxil"
path = "../../auxil/auxil"
version = "0.10"
features = ["spirv_cross"]
optional = true
[dependencies.spirv_cross]
version = "0.23"
features = ["msl"]
optional = true
[dependencies.naga]
git = "https://github.com/gfx-rs/naga"
tag = "gfx-26"
features = ["spv-in", "msl-out"]
# This forces docs.rs to build the crate on mac, otherwise the build fails
# and we get no docs at all.
[package.metadata.docs.rs]
default-target = "x86_64-apple-darwin"