-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCargo.toml
More file actions
61 lines (52 loc) · 1.81 KB
/
Cargo.toml
File metadata and controls
61 lines (52 loc) · 1.81 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
57
58
59
60
61
[package]
name = "shadertoys-wgpu"
version = "0.0.0"
publish = false
authors = []
edition = "2021"
[features]
default = ["use-compiled-tools"]
use-installed-tools = ["spirv-builder/use-installed-tools"]
use-compiled-tools = ["spirv-builder/use-compiled-tools"]
headless = ["png"]
[dependencies]
shared = { path = "shared" }
futures = { version = "0.3", default-features = false, features = [
"std",
"executor"
] }
wgpu = { version = "25.0.0", features = [
"spirv",
"vulkan-portability"
] }
winit = "0.30.12"
bytemuck = "1.20.0"
env_logger = "0.11.6"
ouroboros = "0.18.5"
png = { version = "0.17", optional = true }
[build-dependencies]
spirv-builder.workspace = true
[workspace]
members = ["shaders", "shared"]
[workspace.dependencies]
spirv-builder = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "ddb039b9c97e1c9bbed19c6386f4d1dc9230911b", default-features = false }
spirv-std = { git = "https://github.com/Rust-GPU/rust-gpu", rev = "ddb039b9c97e1c9bbed19c6386f4d1dc9230911b" }
# Compile build-dependencies in release mode with
# the same settings as regular dependencies.
[profile.release.build-override]
opt-level = 3
codegen-units = 16
# HACK(eddyb) also compile debug mode's build-dependencies with optimizations,
# because otherwise `rustc_codegen_spirv` (esspecially its linker) is too slow.
# Also `spirv-opt` *alone* takes (just) over an hour to run, though this only
# brings it down only to 10 minutes, so I've disabled it below, for now.
[profile.dev.build-override]
opt-level = 3
# HACK(eddyb) don't optimize the shader crate, to avoid `spirv-opt` taking
# a long time (10 minutes if itself was optimized, over an hour otherwise).
[profile.release.package."shadertoys-shaders"]
opt-level = 0
[workspace.lints.rust]
unexpected_cfgs = { level = "allow", check-cfg = [
'cfg(target_arch, values("spirv"))'
] }