@@ -110,20 +110,20 @@ name = "raw-gles"
110110required-features = [" gles" ]
111111
112112[dependencies ]
113- bitflags = " 2 "
114- parking_lot = " >=0.11, <0.13 "
115- profiling = { version = " 1 " , default-features = false }
116- raw-window-handle = " 0.6 "
117- thiserror = " 1 "
118- once_cell = " 1.19.0 "
113+ bitflags.workspace = true
114+ parking_lot.workspace = true
115+ profiling = { workspace = true , default-features = false }
116+ raw-window-handle.workspace = true
117+ thiserror.workspace = true
118+ once_cell.workspace = true
119119
120120# backends common
121- arrayvec = " 0.7 "
122- rustc-hash = " 1.1 "
123- log = " 0.4 "
121+ arrayvec.workspace = true
122+ rustc-hash.workspace = true
123+ log.workspace = true
124124
125125# backend: Gles
126- glow = { version = " 0.14.0 " , optional = true }
126+ glow = { workspace = true , optional = true }
127127
128128[dependencies .wgt ]
129129package = " wgpu-types"
@@ -132,33 +132,31 @@ version = "22.0.0"
132132
133133[target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
134134# backend: Vulkan
135- ash = { version = " 0.38.0 " , optional = true }
136- gpu-alloc = { version = " 0.6 " , optional = true }
137- gpu-descriptor = { version = " 0.3 " , optional = true }
138- smallvec = { version = " 1 " , optional = true , features = [" union" ] }
135+ ash = { workspace = true , optional = true }
136+ gpu-alloc = { workspace = true , optional = true }
137+ gpu-descriptor = { workspace = true , optional = true }
138+ smallvec = { workspace = true , optional = true , features = [" union" ] }
139139
140- khronos-egl = { version = " 6 " , features = [" dynamic" ], optional = true }
141- libloading = { version = " >=0.7, <0.9 " , optional = true }
142- renderdoc-sys = { version = " 1.1.0 " , optional = true }
140+ khronos-egl = { workspace = true , features = [" dynamic" ], optional = true }
141+ libloading = { workspace = true , optional = true }
142+ renderdoc-sys = { workspace = true , optional = true }
143143
144144[target .'cfg(target_os = "emscripten")' .dependencies ]
145- khronos-egl = { version = " 6 " , features = [" static" , " no-pkg-config" ] }
145+ khronos-egl = { workspace = true , features = [" static" , " no-pkg-config" ] }
146146# Note: it's unused by emscripten, but we keep it to have single code base in egl.rs
147- libloading = { version = " >=0.7, <0.9 " , optional = true }
147+ libloading = { workspace = true , optional = true }
148148
149149[target .'cfg(windows)' .dependencies ]
150150# backend: Dx12 and Gles
151151windows = { workspace = true , optional = true }
152152# backend: Dx12
153- bit-set = { version = " 0.8" , optional = true }
154- range-alloc = { version = " 0.1" , optional = true }
155- gpu-allocator = { version = " 0.27" , default-features = false , features = [
156- " d3d12" ,
157- " public-winapi" ,
158- ], optional = true }
159- hassle-rs = { version = " 0.11" , optional = true }
153+ bit-set = { workspace = true , optional = true }
154+ range-alloc = { workspace = true , optional = true }
155+ gpu-allocator = { workspace = true , optional = true }
156+ hassle-rs = { workspace = true , optional = true }
157+
160158# backend: Gles
161- glutin_wgl_sys = { version = " 0.6 " , optional = true }
159+ glutin_wgl_sys = { workspace = true , optional = true }
162160
163161winapi = { version = " 0.3" , features = [
164162 " profileapi" ,
@@ -172,28 +170,28 @@ d3d12 = { path = "../d3d12/", version = "22.0.0", optional = true, features = [
172170
173171[target .'cfg(any(target_os="macos", target_os="ios"))' .dependencies ]
174172# backend: Metal
175- block = { version = " 0.1 " , optional = true }
173+ block = { workspace = true , optional = true }
176174
177- metal = { version = " 0.29.0 " }
178- objc = " 0.2.5 "
179- core-graphics-types = " 0.1 "
175+ metal.workspace = true
176+ objc.workspace = true
177+ core-graphics-types.workspace = true
180178
181179[target .'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))' .dependencies ]
182- wasm-bindgen = " 0.2.87 "
183- web-sys = { version = " 0.3.69 " , features = [
180+ wasm-bindgen.workspace = true
181+ web-sys = { workspace = true , features = [
184182 " Window" ,
185183 " HtmlCanvasElement" ,
186184 " WebGl2RenderingContext" ,
187185 " OffscreenCanvas" ,
188186] }
189- js-sys = " 0.3.69 "
187+ js-sys.workspace = true
190188
191189[target .'cfg(unix)' .dependencies ]
192- libc = " 0.2 "
190+ libc.workspace = true
193191
194192[target .'cfg(target_os = "android")' .dependencies ]
195- android_system_properties = { version = " 0.1.1 " , optional = true }
196- ndk-sys = { version = " 0.5.0 " , optional = true }
193+ android_system_properties = { workspace = true , optional = true }
194+ ndk-sys = { workspace = true , optional = true }
197195
198196[dependencies .naga ]
199197path = " ../naga"
@@ -209,12 +207,10 @@ version = "22.0.0"
209207features = [" wgsl-in" ]
210208
211209[dev-dependencies ]
212- cfg-if = " 1 "
213- env_logger = " 0.11 "
210+ cfg-if.workspace = true
211+ env_logger.workspace = true
214212glam.workspace = true # for ray-traced-triangle example
215- winit = { version = " 0.29" , features = [
216- " android-native-activity" ,
217- ] } # for "halmark" example
213+ winit.workspace = true # for "halmark" example
218214
219215[target .'cfg(not(target_arch = "wasm32"))' .dev-dependencies ]
220- glutin = " 0.29.1 " # for "gles" example
216+ glutin.workspace = true # for "gles" example
0 commit comments