Debian Codegraph @

third_party/rust/wgpu-core/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-core"
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 = "Core implementation logic of wgpu, the cross-platform, safe, pure-rust graphics API"
25 homepage = "https://wgpu.rs/"
26 readme = false
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 all-features = true
36 rustdoc-args = [
37 "--cfg",
38 "docsrs",
39 ]
40 targets = [
41 "x86_64-unknown-linux-gnu",
42 "x86_64-apple-darwin",
43 "x86_64-pc-windows-msvc",
44 "wasm32-unknown-unknown",
45 ]
46
47 [features]
48 angle = ["wgpu-core-deps-apple/angle"]
49 api_log_info = []
50 counters = ["wgpu-types/counters"]
51 default = ["std"]
52 dx12 = ["wgpu-core-deps-windows-linux-android/dx12"]
53 fragile-send-sync-non-atomic-wasm = ["wgpu-hal/fragile-send-sync-non-atomic-wasm"]
54 gles = [
55 "wgpu-core-deps-windows-linux-android/gles",
56 "wgpu-core-deps-emscripten/gles",
57 ]
58 glsl = ["naga/glsl-in"]
59 metal = ["wgpu-core-deps-apple/metal"]
60 noop = []
61 observe_locks = [
62 "std",
63 "dep:ron",
64 "serde/serde_derive",
65 ]
66 portable-atomic = [
67 "dep:portable-atomic",
68 "wgpu-hal/portable-atomic",
69 ]
70 raw-window-handle = ["dep:raw-window-handle"]
71 renderdoc = ["wgpu-core-deps-windows-linux-android/renderdoc"]
72 replay = [
73 "serde",
74 "naga/deserialize",
75 ]
76 resource_log_info = []
77 serde = [
78 "dep:serde",
79 "wgpu-types/serde",
80 "arrayvec/serde",
81 "hashbrown/serde",
82 ]
83 spirv = [
84 "naga/spv-in",
85 "dep:bytemuck",
86 ]
87 static-dxc = ["wgpu-hal/static-dxc"]
88 std = []
89 strict_asserts = ["wgpu-types/strict_asserts"]
90 trace = [
91 "serde",
92 "std",
93 "dep:ron",
94 "naga/serialize",
95 "wgpu-types/trace",
96 "dep:bytemuck",
97 ]
98 vulkan = ["wgpu-core-deps-windows-linux-android/vulkan"]
99 vulkan-portability = ["wgpu-core-deps-apple/vulkan-portability"]
100 webgl = ["wgpu-core-deps-wasm/webgl"]
101 wgsl = ["naga/wgsl-in"]
102
103 [lib]
104 name = "wgpu_core"
105 path = "src/lib.rs"
106
107 [dependencies.arrayvec]
108 version = "0.7.1"
109 default-features = false
110
111 [dependencies.bit-set]
112 version = "0.8"
113 default-features = false
114
115 [dependencies.bit-vec]
116 version = "0.8"
117 default-features = false
118
119 [dependencies.bitflags]
120 version = "2.9"
121
122 [dependencies.bytemuck]
123 version = "1.22"
124 features = [
125 "extern_crate_alloc",
126 "min_const_generics",
127 ]
128 optional = true
129
130 [dependencies.document-features]
131 version = "0.2.10"
132
133 [dependencies.hashbrown]
134 version = "0.15"
135 features = [
136 "default-hasher",
137 "inline-more",
138 ]
139 default-features = false
140
141 [dependencies.indexmap]
142 version = "2.7"
143 default-features = false
144
145 [dependencies.log]
146 version = "0.4.21"
147
148 [dependencies.naga]
149 version = "25.0.0"
150 path = "../naga"
151
152 [dependencies.once_cell]
153 version = "1.21"
154 features = ["std"]
155 default-features = false
156
157 [dependencies.parking_lot]
158 version = "0.12.3"
159
160 [dependencies.profiling]
161 version = "1"
162 default-features = false
163
164 [dependencies.raw-window-handle]
165 version = "0.6.2"
166 optional = true
167 default-features = false
168
169 [dependencies.ron]
170 version = "0.10"
171 optional = true
172
173 [dependencies.rustc-hash]
174 version = "1.1"
175 default-features = false
176
177 [dependencies.serde]
178 version = "1.0.219"
179 features = [
180 "default",
181 "derive",
182 ]
183 optional = true
184 default-features = false
185
186 [dependencies.smallvec]
187 version = "1.9"
188
189 [dependencies.thiserror]
190 version = "2.0.3"
191 default-features = false
192
193 [dependencies.wgpu-hal]
194 version = "25.0.0"
195 path = "../wgpu-hal"
196
197 [dependencies.wgpu-types]
198 version = "25.0.0"
199 path = "../wgpu-types"
200
201 [build-dependencies.cfg_aliases]
202 version = "0.2.1"
203
204 [target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies.wgpu-core-deps-wasm]
205 version = "25.0.0"
206 path = "platform-deps/wasm"
207 optional = true
208
209 [target.'cfg(any(windows, target_os = "linux", target_os = "android"))'.dependencies.wgpu-core-deps-windows-linux-android]
210 version = "25.0.0"
211 path = "platform-deps/windows-linux-android"
212 optional = true
213
214 [target.'cfg(not(target_has_atomic = "64"))'.dependencies.portable-atomic]
215 version = "1.2"
216 optional = true
217
218 [target.'cfg(target_os = "emscripten")'.dependencies.wgpu-core-deps-emscripten]
219 version = "25.0.0"
220 path = "platform-deps/emscripten"
221 optional = true
222
223 [target.'cfg(target_vendor = "apple")'.dependencies.wgpu-core-deps-apple]
224 version = "25.0.0"
225 path = "platform-deps/apple"
226 optional = true
227
228 [lints.rust.unexpected_cfgs]
229 level = "warn"
230 priority = 0
231 check-cfg = ["cfg(wgpu_validate_locks)"]