-
Notifications
You must be signed in to change notification settings - Fork 543
/
Copy pathCargo.toml
79 lines (65 loc) · 1.79 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
70
71
72
73
74
75
76
77
78
79
[package]
name = "hal-examples"
version = "0.1.0"
publish = false
workspace = ".."
edition = "2018"
[features]
default = []
metal = ["gfx-backend-metal"]
gl = ["gfx-backend-gl"]
dx11 = ["gfx-backend-dx11"]
dx12 = ["gfx-backend-dx12"]
vulkan = ["gfx-backend-vulkan"]
unstable = []
[[bin]]
name = "colour-uniform"
path = "colour-uniform/main.rs"
[[bin]]
name = "quad"
path = "quad/main.rs"
[[bin]]
name = "compute"
path = "compute/main.rs"
[dependencies]
env_logger = "0.6"
image = "0.21"
log = "0.4"
gfx-hal = { path = "../src/hal", version = "0.2" }
gfx-backend-empty = { path = "../src/backend/empty", version = "0.2" }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
winit = "0.19"
glsl-to-spirv = "0.1.4"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.gfx-backend-gl]
path = "../src/backend/gl"
version = "0.2"
features = ["glutin"]
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.gfx-backend-gl]
path = "../src/backend/gl"
version = "0.2"
default-features = false
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.32"
console_error_panic_hook = "0.1.6"
console_log = "0.1.2"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.6"
features = [ "console", "Document", "Element", "HtmlElement", "Node", "Window" ]
[dependencies.gfx-backend-vulkan]
path = "../src/backend/vulkan"
version = "0.2"
optional = true
[target.'cfg(any(target_os = "macos", all(target_os = "ios", target_arch = "aarch64")))'.dependencies.gfx-backend-metal]
path = "../src/backend/metal"
version = "0.2"
optional = true
[target.'cfg(windows)'.dependencies.gfx-backend-dx11]
path = "../src/backend/dx11"
version = "0.2"
optional = true
[target.'cfg(windows)'.dependencies.gfx-backend-dx12]
path = "../src/backend/dx12"
version = "0.2"
optional = true