@@ -107,7 +107,6 @@ gles = [
107107 " naga/glsl-out" ,
108108 " dep:arrayvec" ,
109109 " dep:bytemuck" ,
110- " dep:cfg-if" ,
111110 " dep:glow" ,
112111 " dep:glutin_wgl_sys" ,
113112 " dep:hashbrown" ,
@@ -165,7 +164,7 @@ renderdoc = ["dep:libloading", "dep:renderdoc-sys", "dep:log"]
165164fragile-send-sync-non-atomic-wasm = [
166165 " wgpu-types/fragile-send-sync-non-atomic-wasm" ,
167166]
168- portable-atomic = [" dep:portable-atomic" ]
167+ portable-atomic = [" dep:portable-atomic" , " dep:portable-atomic-util " ]
169168
170169# ##################################
171170# ## Internal Debugging Features ###
@@ -207,6 +206,7 @@ wgpu-types = { workspace = true, default-features = false }
207206
208207# Dependencies in the lib and empty backend
209208bitflags.workspace = true
209+ cfg-if.workspace = true
210210raw-window-handle.workspace = true
211211parking_lot = { workspace = true , optional = true }
212212thiserror.workspace = true
@@ -216,14 +216,12 @@ arrayvec = { workspace = true, optional = true }
216216bytemuck = { workspace = true , optional = true , features = [" derive" ] }
217217hashbrown = { workspace = true , optional = true }
218218log = { workspace = true , optional = true }
219- once_cell = { workspace = true , optional = true }
220219ordered-float = { workspace = true , optional = true }
221220profiling = { workspace = true , optional = true , default-features = false }
222221rustc-hash = { workspace = true , optional = true }
223222
224223# Backend: GLES
225224glow = { workspace = true , optional = true }
226- cfg-if = { workspace = true , optional = true }
227225
228226# #######################
229227# ## Platform: Native ###
@@ -318,14 +316,18 @@ khronos-egl = { workspace = true, optional = true, features = [
318316# Note: it's unused by emscripten, but we keep it to have single code base in egl.rs
319317libloading = { workspace = true , optional = true }
320318
321- [target .'cfg(not(target_has_atomic = "64"))' .dependencies ]
319+ [target .'cfg(any( not(target_has_atomic = "64"), not(target_has_atomic = "ptr") ))' .dependencies ]
322320portable-atomic = { workspace = true , optional = true }
323321
322+ [target .'cfg(not(target_has_atomic = "ptr"))' .dependencies ]
323+ portable-atomic-util = { workspace = true , features = [
324+ " alloc" ,
325+ ], optional = true }
326+
324327[build-dependencies ]
325328cfg_aliases.workspace = true
326329
327330[dev-dependencies ]
328- cfg-if.workspace = true
329331env_logger.workspace = true
330332glam.workspace = true # for ray-traced-triangle example
331333naga = { workspace = true , features = [" wgsl-in" , " termcolor" ] }
0 commit comments