-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
56 lines (49 loc) · 1.44 KB
/
Cargo.toml
File metadata and controls
56 lines (49 loc) · 1.44 KB
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
[package]
name = "lambda-rs-platform"
description = "Platform implementations for lambda-rs"
version = "2023.1.30"
edition = "2021"
resolver = "2"
license = "MIT"
[lib]
name = "lambda_platform"
path = "src/lib.rs"
[dependencies]
winit = "=0.29.15"
shaderc = { version = "=0.7", optional = true, default-features = false }
naga = { version = "=28.0.0", optional = true, default-features = false, features = [
"spv-out",
"glsl-in",
"wgsl-in",
] }
rand = "=0.8.5"
obj-rs = "=0.7.0"
wgpu = { version = "=28.0.0", optional = true, features = ["wgsl", "spirv"] }
pollster = { version = "=0.4.0", optional = true }
lambda-rs-logging = { path = "../lambda-rs-logging", version = "2023.1.30" }
# Force windows crate to 0.62 to unify wgpu-hal and gpu-allocator dependencies.
# Both crates support this version range, but Cargo may resolve to different
# versions without this explicit constraint.
[target.'cfg(windows)'.dependencies]
windows = "0.62"
[dev-dependencies]
mockall = "=0.11.3"
[features]
default = ["wgpu", "shader-backend-naga"]
shader-backend-naga = ["dep:naga"]
shader-backend-shaderc = ["dep:shaderc"]
shader-backend-shaderc-build-from-source = [
"shader-backend-shaderc",
"shaderc/build-from-source",
]
wgpu = [
"dep:wgpu",
"dep:pollster",
"wgpu/wgsl",
"wgpu/spirv",
"shader-backend-naga",
]
wgpu-with-vulkan = ["wgpu"]
wgpu-with-metal = ["wgpu", "wgpu/metal"]
wgpu-with-dx12 = ["wgpu", "wgpu/dx12"]
wgpu-with-gl = ["wgpu", "wgpu/webgl"]