-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
52 lines (45 loc) · 1.41 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
[package]
name = "gfx-ocean"
version = "0.1.0"
edition = "2018"
publish = false
[features]
default = []
dx12 = ["gfx-backend-dx12"]
vulkan = ["gfx-backend-vulkan"]
metal = ["gfx-backend-metal"]
gl = ["gfx-backend-gl"]
[lib]
name = "ocean"
path = "src/lib.rs"
[[example]]
name = "ocean_ios"
path = "examples/ios/ios.rs"
crate-type = ["staticlib"]
required-features = ["metal"]
[[bin]]
name = "ocean"
[dependencies]
env_logger = "0.8"
log = "0.4"
winit = "0.24"
glm = { package = "nalgebra-glm", version = "0.4" }
bincode = "1.1"
hal = { package = "gfx-hal", version = "0.7" }
gfx-auxil = "0.8"
gfx-backend-empty = "0.7"
gfx-backend-vulkan = { version = "0.7", optional = true }
[target.'cfg(windows)'.dependencies]
gfx-backend-dx12 = { version = "0.7", optional = true }
[target.'cfg(any(target_os = "macos", all(target_os = "ios", target_arch = "aarch64")))'.dependencies]
gfx-backend-metal = { version = "0.7", optional = true }
objc = "0.2.7"
[target.'cfg(all(unix, not(target_os = "macos"), not(target_os = "ios")))'.dependencies]
gfx-backend-gl = { version = "0.7", optional = true }
[patch.crates-io]
#gfx-hal = { path = "../gfx/src/hal" }
#gfx-backend-empty = { path = "../gfx/src/backend/empty" }
#gfx-backend-vulkan = { path = "../gfx/src/backend/vulkan" }
#gfx-backend-gl = { path = "../gfx/src/backend/gl" }
#gfx-backend-dx12 = { path = "../gfx/src/backend/dx12" }
#gfx-backend-metal = { path = "../gfx/src/backend/metal" }