Bug 1893155 - Part 6: Correct constant for minimum epoch day. r=spidermonkey-reviewer...
[gecko.git] / third_party / rust / wgpu-hal / Cargo.toml
blobf87160314a732d096bbf142658c20a7b8f770778
1 # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
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.
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.
12 [package]
13 edition = "2021"
14 rust-version = "1.74"
15 name = "wgpu-hal"
16 version = "0.19.3"
17 authors = ["gfx-rs developers"]
18 description = "WebGPU hardware abstraction layer"
19 homepage = "https://wgpu.rs/"
20 readme = "README.md"
21 keywords = ["graphics"]
22 license = "MIT OR Apache-2.0"
23 repository = "https://github.com/gfx-rs/wgpu"
25 [package.metadata.docs.rs]
26 features = [
27     "vulkan",
28     "gles",
29     "renderdoc",
31 rustdoc-args = [
32     "--cfg",
33     "docsrs",
35 targets = [
36     "x86_64-unknown-linux-gnu",
37     "x86_64-apple-darwin",
38     "x86_64-pc-windows-msvc",
39     "wasm32-unknown-unknown",
42 [lib]
44 [[example]]
45 name = "halmark"
47 [[example]]
48 name = "raw-gles"
49 required-features = ["gles"]
51 [dependencies]
52 arrayvec = "0.7"
53 bitflags = "2"
54 log = "0.4"
55 once_cell = "1.19.0"
56 parking_lot = ">=0.11,<0.13"
57 raw-window-handle = "0.6"
58 rustc-hash = "1.1"
59 thiserror = "1"
61 [dependencies.glow]
62 version = "0.13.1"
63 optional = true
65 [dependencies.naga]
66 version = "0.19.2"
67 path = "../naga"
69 [dependencies.profiling]
70 version = "1"
71 default-features = false
73 [dependencies.wgt]
74 version = "0.19.2"
75 path = "../wgpu-types"
76 package = "wgpu-types"
78 [dev-dependencies]
79 cfg-if = "1"
80 env_logger = "0.11"
81 glam = "0.25.0"
83 [dev-dependencies.naga]
84 version = "0.19.2"
85 path = "../naga"
86 features = ["wgsl-in"]
88 [dev-dependencies.winit]
89 version = "0.29.14"
90 features = ["android-native-activity"]
92 [build-dependencies]
93 cfg_aliases = "0.1"
95 [features]
96 default = ["link"]
97 device_lost_panic = []
98 dx12 = [
99     "naga/hlsl-out",
100     "d3d12",
101     "bit-set",
102     "libloading",
103     "range-alloc",
104     "winapi/std",
105     "winapi/winbase",
106     "winapi/d3d12",
107     "winapi/d3d12shader",
108     "winapi/d3d12sdklayers",
109     "winapi/dxgi1_6",
111 dxc_shader_compiler = ["hassle-rs"]
112 fragile-send-sync-non-atomic-wasm = ["wgt/fragile-send-sync-non-atomic-wasm"]
113 gles = [
114     "naga/glsl-out",
115     "glow",
116     "glutin_wgl_sys",
117     "khronos-egl",
118     "libloading",
119     "ndk-sys",
121 internal_error_panic = []
122 link = ["metal/link"]
123 metal = [
124     "naga/msl-out",
125     "block",
127 oom_panic = []
128 renderdoc = [
129     "libloading",
130     "renderdoc-sys",
132 vulkan = [
133     "naga/spv-out",
134     "ash",
135     "gpu-alloc",
136     "gpu-descriptor",
137     "libloading",
138     "smallvec",
139     "android_system_properties",
141 windows_rs = ["gpu-allocator"]
143 [target."cfg(all(target_arch = \"wasm32\", not(target_os = \"emscripten\")))".dependencies]
144 js-sys = "0.3.69"
145 wasm-bindgen = "0.2.87"
147 [target."cfg(all(target_arch = \"wasm32\", not(target_os = \"emscripten\")))".dependencies.web-sys]
148 version = "0.3.69"
149 features = [
150     "Window",
151     "HtmlCanvasElement",
152     "WebGl2RenderingContext",
153     "OffscreenCanvas",
156 [target."cfg(any(target_os=\"macos\", target_os=\"ios\"))".dependencies]
157 core-graphics-types = "0.1"
158 objc = "0.2.5"
160 [target."cfg(any(target_os=\"macos\", target_os=\"ios\"))".dependencies.block]
161 version = "0.1"
162 optional = true
164 [target."cfg(any(target_os=\"macos\", target_os=\"ios\"))".dependencies.metal]
165 version = "0.27.0"
166 git = "https://github.com/gfx-rs/metal-rs"
167 rev = "ff8fd3d6dc7792852f8a015458d7e6d42d7fb352"
169 [target."cfg(not(target_arch = \"wasm32\"))".dependencies.ash]
170 version = "0.37.3"
171 optional = true
173 [target."cfg(not(target_arch = \"wasm32\"))".dependencies.gpu-alloc]
174 version = "0.6"
175 optional = true
177 [target."cfg(not(target_arch = \"wasm32\"))".dependencies.gpu-descriptor]
178 version = "0.2"
179 optional = true
181 [target."cfg(not(target_arch = \"wasm32\"))".dependencies.khronos-egl]
182 version = "6"
183 features = ["dynamic"]
184 optional = true
186 [target."cfg(not(target_arch = \"wasm32\"))".dependencies.libloading]
187 version = ">=0.7, <0.9"
188 optional = true
190 [target."cfg(not(target_arch = \"wasm32\"))".dependencies.renderdoc-sys]
191 version = "1.1.0"
192 optional = true
194 [target."cfg(not(target_arch = \"wasm32\"))".dependencies.smallvec]
195 version = "1"
196 features = ["union"]
197 optional = true
199 [target."cfg(not(target_arch = \"wasm32\"))".dev-dependencies]
200 glutin = "0.29.1"
202 [target."cfg(target_os = \"android\")".dependencies.android_system_properties]
203 version = "0.1.1"
204 optional = true
206 [target."cfg(target_os = \"android\")".dependencies.ndk-sys]
207 version = "0.5.0"
208 optional = true
210 [target."cfg(target_os = \"emscripten\")".dependencies.khronos-egl]
211 version = "6"
212 features = [
213     "static",
214     "no-pkg-config",
217 [target."cfg(target_os = \"emscripten\")".dependencies.libloading]
218 version = ">=0.7, <0.9"
219 optional = true
221 [target."cfg(unix)".dependencies]
222 libc = "0.2"
224 [target."cfg(windows)".dependencies.bit-set]
225 version = "0.5"
226 optional = true
228 [target."cfg(windows)".dependencies.d3d12]
229 version = "0.19.0"
230 path = "../d3d12/"
231 features = ["libloading"]
232 optional = true
234 [target."cfg(windows)".dependencies.glutin_wgl_sys]
235 version = "0.5"
236 optional = true
238 [target."cfg(windows)".dependencies.gpu-allocator]
239 version = "0.25"
240 features = [
241     "d3d12",
242     "public-winapi",
244 optional = true
245 default_features = false
247 [target."cfg(windows)".dependencies.hassle-rs]
248 version = "0.11"
249 optional = true
251 [target."cfg(windows)".dependencies.range-alloc]
252 version = "0.1"
253 optional = true
255 [target."cfg(windows)".dependencies.winapi]
256 version = "0.3"
257 features = [
258     "profileapi",
259     "libloaderapi",
260     "windef",
261     "winuser",
262     "dcomp",