-
Notifications
You must be signed in to change notification settings - Fork 987
/
Copy pathCargo.toml
206 lines (190 loc) · 5.57 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
[workspace]
resolver = "2"
members = [
"cts_runner",
"deno_webgpu",
# default members
"benches",
"examples/features",
"examples/standalone/*",
"lock-analyzer",
"naga-cli",
"naga",
"naga/fuzz",
"naga/hlsl-snapshots",
"player",
"tests",
"wgpu-core",
"wgpu-hal",
"wgpu-info",
"wgpu-macros",
"wgpu-types",
"wgpu",
]
exclude = []
default-members = [
"benches",
"examples/features",
"examples/standalone/*",
"lock-analyzer",
"naga-cli",
"naga",
"naga/fuzz",
"naga/hlsl-snapshots",
"player",
"tests",
"wgpu-core",
"wgpu-hal",
"wgpu-info",
"wgpu-macros",
"wgpu-types",
"wgpu",
]
[workspace.lints.clippy]
manual_c_str_literals = "allow"
ref_as_ptr = "warn"
# NOTE: disallowed-types is configured in other file: clippy.toml
[workspace.package]
edition = "2021"
rust-version = "1.83"
keywords = ["graphics"]
license = "MIT OR Apache-2.0"
homepage = "https://wgpu.rs/"
repository = "https://github.com/gfx-rs/wgpu"
version = "24.0.0"
authors = ["gfx-rs developers"]
[workspace.dependencies]
naga = { version = "24.0.0", path = "./naga" }
wgpu = { version = "24.0.0", path = "./wgpu", default-features = false, features = [
"serde",
"wgsl",
"dx12",
"metal",
"static-dxc",
] }
wgpu-core = { version = "24.0.0", path = "./wgpu-core" }
wgpu-hal = { version = "24.0.0", path = "./wgpu-hal" }
wgpu-macros = { version = "24.0.0", path = "./wgpu-macros" }
wgpu-test = { version = "24.0.0", path = "./tests" }
wgpu-types = { version = "24.0.0", path = "./wgpu-types" }
anyhow = { version = "1.0.95", default-features = false }
approx = "0.5"
argh = "0.1.13"
arrayvec = { version = "0.7.6", default-features = false }
bincode = "1"
bit-set = { version = "0.8", default-features = false }
bit-vec = { version = "0.8", default-features = false }
bitflags = "2.7"
bytemuck = { version = "1.21", features = ["derive", "min_const_generics"] }
cfg_aliases = "0.2.1"
cfg-if = "1"
criterion = "0.5"
codespan-reporting = "0.11"
ctor = "0.2"
document-features = "0.2.10"
encase = "0.10.0"
env_logger = "0.11"
fern = "0.7"
flume = "0.11"
futures-lite = "2"
getrandom = "0.2"
glam = "0.29"
hashbrown = { version = "0.14.5", default-features = false, features = [
"ahash",
"inline-more",
] }
heck = "0.5.0"
image = { version = "0.24", default-features = false, features = ["png"] }
indexmap = { version = "2.5.0", default-features = false }
itertools = { version = "0.13.0" }
ktx2 = "0.3"
libc = { version = "0.2", default-features = false }
libloading = "0.8"
libtest-mimic = "0.8.1"
log = "0.4"
nanorand = { version = "0.7", default-features = false, features = ["wyrand"] }
noise = "0.9"
nv-flip = "0.1"
obj = "0.10"
# NOTE: once_cell/std is *required* for some commonly-used features, selecting this per crate
once_cell = { version = "1.20.3", default-features = false }
# Firefox has 3.4.0 vendored, so we allow that version in our dependencies
ordered-float = { version = ">=3,<=4.6", default-features = false }
parking_lot = "0.12.1"
pico-args = { version = "0.5.0", features = [
"eq-separator",
"short-space-opt",
"combined-flags",
] }
png = "0.17.16"
pollster = "0.4"
profiling = { version = "1", default-features = false }
raw-window-handle = { version = "0.6", default-features = false }
rayon = "1"
renderdoc-sys = "1.1.0"
ron = "0.8"
# NOTE: rustc-hash v2 is a completely different hasher with different performance characteristics
# see discussion here (including with some other alternatives): https://github.com/gfx-rs/wgpu/issues/6999
# (using default-features = false to support no-std build, avoiding any extra features that may require std::collections)
rustc-hash = { version = "1", default-features = false }
serde_json = "1.0.138"
serde = { version = "1", default-features = false }
smallvec = "1"
static_assertions = "1.1.0"
strum = { version = "0.26.3", default-features = false, features = ["derive"] }
trybuild = "1"
tracy-client = "0.17"
thiserror = { version = "2", default-features = false }
winit = { version = "0.29", features = ["android-native-activity"] }
# Metal dependencies
metal = "0.31.0"
block = "0.1"
core-graphics-types = "0.1"
objc = "0.2.5"
# Vulkan dependencies
android_system_properties = "0.1.1"
ash = "0.38.0"
gpu-alloc = "0.6"
gpu-descriptor = "0.3"
# DX12 dependencies
gpu-allocator = { version = "0.27", default-features = false }
range-alloc = "0.1"
mach-dxcompiler-rs = { version = "0.1.4", default-features = false }
windows-core = { version = "0.58", default-features = false }
# Gles dependencies
khronos-egl = "6"
glow = "0.16"
glutin = { version = "0.31", default-features = false }
glutin-winit = { version = "0.4", default-features = false }
glutin_wgl_sys = "0.6"
# DX12 and GLES dependencies
windows = { version = "0.58", default-features = false }
# wasm32 dependencies
console_error_panic_hook = "0.1.7"
console_log = "1"
js-sys = { version = "0.3.70", default-features = false }
wasm-bindgen = "0.2.97"
wasm-bindgen-futures = "0.4.45"
wasm-bindgen-test = "0.3"
web-sys = { version = "0.3.74", default-features = false }
web-time = "1.1.0"
# deno dependencies
deno_console = "0.179.0"
deno_core = "0.321.0"
deno_url = "0.179.0"
deno_web = "0.210.0"
deno_webidl = "0.179.0"
deno_webgpu = { version = "0.146.0", path = "./deno_webgpu" }
tokio = "1.41.1"
termcolor = "1.4.1"
# android dependencies
ndk-sys = "0.5.0"
# These overrides allow our examples to explicitly depend on release crates
[patch.crates-io]
wgpu = { path = "./wgpu" }
[profile.release]
lto = "thin"
debug = true
# Speed up image comparison even in debug builds
[profile.dev.package."nv-flip-sys"]
opt-level = 3