Debian Codegraph @

third_party/rust/wgpu-hal/Cargo.toml

raw
1 # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2 #
3 # When uploading crates to the registry Cargo will automatically
4 # "normalize" Cargo.toml files for maximal compatibility
5 # with all versions of Cargo and also rewrite `path` dependencies
6 # to registry (e.g., crates.io) dependencies.
7 #
8 # If you are reading this file be aware that the original Cargo.toml
9 # will likely look very different (and much more reasonable).
10 # See Cargo.toml.orig for the original contents.
11
12 [package]
13 edition = "2021"
14 rust-version = "1.82.0"
15 name = "wgpu-hal"
16 version = "25.0.0"
17 authors = ["gfx-rs developers"]
18 build = "build.rs"
19 autolib = false
20 autobins = false
21 autoexamples = false
22 autotests = false
23 autobenches = false
24 description = "Hardware abstraction layer for wgpu, the cross-platform, safe, pure-rust graphics API"
25 homepage = "https://wgpu.rs/"
26 readme = "README.md"
27 keywords = ["graphics"]
28 license = "MIT OR Apache-2.0"
29 repository = "https://github.com/gfx-rs/wgpu"
30
31 [package.metadata.cargo-machete]
32 ignored = ["cfg_aliases"]
33
34 [package.metadata.docs.rs]
35 features = [
36 "vulkan",
37 "gles",
38 "renderdoc",
39 ]
40 rustdoc-args = [
41 "--cfg",
42 "docsrs",
43 ]
44 targets = [
45 "x86_64-unknown-linux-gnu",
46 "x86_64-apple-darwin",
47 "x86_64-pc-windows-msvc",
48 "wasm32-unknown-unknown",
49 ]
50
51 [features]
52 cargo-clippy = []
53 device_lost_panic = []
54 dx12 = [
55 "naga/hlsl-out",
56 "dep:arrayvec",
57 "dep:bit-set",
58 "dep:bytemuck",
59 "dep:hashbrown",
60 "dep:libloading",
61 "dep:log",
62 "dep:ordered-float",
63 "dep:profiling",
64 "dep:range-alloc",
65 "dep:windows-core",
66 "gpu-allocator/d3d12",
67 "windows/Win32_Graphics_Direct3D_Fxc",
68 "windows/Win32_Graphics_Direct3D_Dxc",
69 "windows/Win32_Graphics_Direct3D",
70 "windows/Win32_Graphics_Direct3D12",
71 "windows/Win32_Graphics_DirectComposition",
72 "windows/Win32_Graphics_Dxgi_Common",
73 "windows/Win32_Security",
74 "windows/Win32_System_Diagnostics_Debug",
75 "windows/Win32_System_Kernel",
76 "windows/Win32_System_Performance",
77 "windows/Win32_System_Threading",
78 "windows/Win32_UI_WindowsAndMessaging",
79 ]
80 fragile-send-sync-non-atomic-wasm = ["wgpu-types/fragile-send-sync-non-atomic-wasm"]
81 gles = [
82 "naga/glsl-out",
83 "dep:arrayvec",
84 "dep:bytemuck",
85 "dep:cfg-if",
86 "dep:glow",
87 "dep:glutin_wgl_sys",
88 "dep:hashbrown",
89 "dep:js-sys",
90 "dep:khronos-egl",
91 "dep:libloading",
92 "dep:log",
93 "dep:ndk-sys",
94 "dep:objc",
95 "dep:profiling",
96 "dep:wasm-bindgen",
97 "dep:web-sys",
98 "windows/Win32_Graphics_OpenGL",
99 "windows/Win32_Graphics_Gdi",
100 "windows/Win32_System_LibraryLoader",
101 "windows/Win32_UI_WindowsAndMessaging",
102 ]
103 internal_error_panic = []
104 metal = [
105 "naga/msl-out",
106 "dep:arrayvec",
107 "dep:block",
108 "dep:core-graphics-types",
109 "dep:hashbrown",
110 "dep:libc",
111 "dep:log",
112 "dep:metal",
113 "dep:objc",
114 "dep:profiling",
115 ]
116 portable-atomic = ["dep:portable-atomic"]
117 renderdoc = [
118 "dep:libloading",
119 "dep:renderdoc-sys",
120 "dep:log",
121 ]
122 static-dxc = ["dep:mach-dxcompiler-rs"]
123 vulkan = [
124 "naga/spv-out",
125 "dep:android_system_properties",
126 "dep:arrayvec",
127 "dep:ash",
128 "dep:bytemuck",
129 "dep:gpu-alloc",
130 "dep:gpu-descriptor",
131 "dep:hashbrown",
132 "dep:libc",
133 "dep:libloading",
134 "dep:log",
135 "dep:ordered-float",
136 "dep:profiling",
137 "dep:smallvec",
138 "dep:windows",
139 "windows/Win32",
140 ]
141
142 [lib]
143 name = "wgpu_hal"
144 path = "src/lib.rs"
145
146 [[example]]
147 name = "halmark"
148 path = "examples/halmark/main.rs"
149
150 [[example]]
151 name = "raw-gles"
152 path = "examples/raw-gles.rs"
153 required-features = ["gles"]
154
155 [[example]]
156 name = "ray-traced-triangle"
157 path = "examples/ray-traced-triangle/main.rs"
158
159 [dependencies.arrayvec]
160 version = "0.7.1"
161 optional = true
162 default-features = false
163
164 [dependencies.bitflags]
165 version = "2.9"
166
167 [dependencies.bytemuck]
168 version = "1.22"
169 features = [
170 "extern_crate_alloc",
171 "min_const_generics",
172 "derive",
173 ]
174 optional = true
175
176 [dependencies.cfg-if]
177 version = "1"
178 optional = true
179
180 [dependencies.glow]
181 version = "0.16"
182 optional = true
183
184 [dependencies.hashbrown]
185 version = "0.15"
186 features = [
187 "default-hasher",
188 "inline-more",
189 ]
190 optional = true
191 default-features = false
192
193 [dependencies.log]
194 version = "0.4.21"
195 optional = true
196
197 [dependencies.naga]
198 version = "25.0.0"
199 path = "../naga"
200
201 [dependencies.once_cell]
202 version = "1.21"
203 optional = true
204 default-features = false
205
206 [dependencies.ordered-float]
207 version = ">=3, <=5.0"
208 optional = true
209 default-features = false
210
211 [dependencies.parking_lot]
212 version = "0.12.3"
213
214 [dependencies.profiling]
215 version = "1"
216 optional = true
217 default-features = false
218
219 [dependencies.raw-window-handle]
220 version = "0.6.2"
221 default-features = false
222
223 [dependencies.rustc-hash]
224 version = "1.1"
225 optional = true
226 default-features = false
227
228 [dependencies.thiserror]
229 version = "2.0.3"
230 default-features = false
231
232 [dependencies.wgpu-types]
233 version = "25.0.0"
234 path = "../wgpu-types"
235
236 [dev-dependencies.cfg-if]
237 version = "1"
238
239 [dev-dependencies.env_logger]
240 version = "0.11"
241 default-features = false
242
243 [dev-dependencies.glam]
244 version = "0.30"
245
246 [dev-dependencies.naga]
247 version = "25.0.0"
248 path = "../naga"
249 features = [
250 "wgsl-in",
251 "termcolor",
252 ]
253
254 [dev-dependencies.winit]
255 version = "0.29"
256 features = ["android-native-activity"]
257
258 [build-dependencies.cfg_aliases]
259 version = "0.2.1"
260
261 [target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.js-sys]
262 version = "0.3.77"
263 optional = true
264 default-features = true
265
266 [target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.wasm-bindgen]
267 version = "0.2.100"
268 optional = true
269
270 [target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.web-sys]
271 version = "0.3.77"
272 features = [
273 "default",
274 "Window",
275 "HtmlCanvasElement",
276 "WebGl2RenderingContext",
277 "OffscreenCanvas",
278 ]
279 optional = true
280 default-features = false
281
282 [target.'cfg(all(windows, not(target_arch = "aarch64")))'.dependencies.mach-dxcompiler-rs]
283 version = "0.1.4"
284 optional = true
285 default-features = false
286
287 [target.'cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "visionos")))'.dev-dependencies.glutin]
288 version = "0.31"
289 features = [
290 "egl",
291 "wgl",
292 "wayland",
293 "x11",
294 ]
295 default-features = false
296
297 [target.'cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "visionos")))'.dev-dependencies.glutin-winit]
298 version = "0.4"
299 features = [
300 "egl",
301 "wgl",
302 "wayland",
303 "x11",
304 ]
305 default-features = false
306
307 [target.'cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "visionos")))'.dev-dependencies.rwh_05]
308 version = "0.5.2"
309 package = "raw-window-handle"
310
311 [target.'cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "visionos")))'.dev-dependencies.winit]
312 version = "0.29"
313 features = [
314 "android-native-activity",
315 "rwh_05",
316 ]
317
318 [target.'cfg(not(target_arch = "wasm32"))'.dependencies.ash]
319 version = "0.38"
320 optional = true
321
322 [target.'cfg(not(target_arch = "wasm32"))'.dependencies.gpu-alloc]
323 version = "0.6"
324 optional = true
325
326 [target.'cfg(not(target_arch = "wasm32"))'.dependencies.gpu-descriptor]
327 version = "0.3"
328 optional = true
329
330 [target.'cfg(not(target_arch = "wasm32"))'.dependencies.khronos-egl]
331 version = "6"
332 features = ["dynamic"]
333 optional = true
334
335 [target.'cfg(not(target_arch = "wasm32"))'.dependencies.libloading]
336 version = "0.8"
337 optional = true
338
339 [target.'cfg(not(target_arch = "wasm32"))'.dependencies.renderdoc-sys]
340 version = "1"
341 optional = true
342
343 [target.'cfg(not(target_arch = "wasm32"))'.dependencies.smallvec]
344 version = "1.9"
345 features = ["union"]
346 optional = true
347
348 [target.'cfg(not(target_has_atomic = "64"))'.dependencies.portable-atomic]
349 version = "1.2"
350 optional = true
351
352 [target.'cfg(target_os = "android")'.dependencies.android_system_properties]
353 version = "0.1.1"
354 optional = true
355
356 [target.'cfg(target_os = "android")'.dependencies.ndk-sys]
357 version = "0.6"
358 optional = true
359
360 [target.'cfg(target_os = "emscripten")'.dependencies.khronos-egl]
361 version = "6"
362 features = [
363 "static",
364 "no-pkg-config",
365 ]
366 optional = true
367
368 [target.'cfg(target_os = "emscripten")'.dependencies.libloading]
369 version = "0.8"
370 optional = true
371
372 [target.'cfg(target_vendor = "apple")'.dependencies.block]
373 version = "0.1.6"
374 optional = true
375
376 [target.'cfg(target_vendor = "apple")'.dependencies.core-graphics-types]
377 version = "0.2"
378 optional = true
379
380 [target.'cfg(target_vendor = "apple")'.dependencies.metal]
381 version = "0.32"
382 optional = true
383
384 [target.'cfg(target_vendor = "apple")'.dependencies.objc]
385 version = "0.2.5"
386 optional = true
387
388 [target."cfg(unix)".dependencies.libc]
389 version = "0.2.168"
390 optional = true
391 default-features = false
392
393 [target."cfg(windows)".dependencies.bit-set]
394 version = "0.8"
395 optional = true
396 default-features = false
397
398 [target."cfg(windows)".dependencies.glutin_wgl_sys]
399 version = "0.6"
400 optional = true
401
402 [target."cfg(windows)".dependencies.gpu-allocator]
403 version = "0.27"
404 optional = true
405 default-features = false
406
407 [target."cfg(windows)".dependencies.range-alloc]
408 version = "0.1"
409 optional = true
410
411 [target."cfg(windows)".dependencies.windows]
412 version = "0.58"
413 optional = true
414 default-features = false
415
416 [target."cfg(windows)".dependencies.windows-core]
417 version = "0.58"
418 optional = true
419 default-features = false
420
421 [lints.rust.unexpected_cfgs]
422 level = "warn"
423 priority = 0
424 check-cfg = ["cfg(web_sys_unstable_apis)"]