Skip to content

Commit

Permalink
Update backend/web.rs to match web-sys v0.3.58
Browse files Browse the repository at this point in the history
  • Loading branch information
jinleili committed Jun 27, 2022
1 parent a3ed6e0 commit 44dae81
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 99 deletions.
56 changes: 28 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 9 additions & 11 deletions wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,15 @@ rev = "0b60f410"
features = ["wgsl-out"]

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.80"
web-sys = { version = "0.3.57", features = [
web-sys = { version = "0.3.58", features = [
"Document",
"Navigator",
"Node",
"NodeList",
"Gpu",
"GpuAdapter",
"GpuAddressMode",
"GpuAutoLayoutMode",
"GpuBindGroup",
"GpuBindGroupDescriptor",
"GpuBindGroupEntry",
Expand All @@ -182,12 +182,10 @@ web-sys = { version = "0.3.57", features = [
"GpuBufferBindingLayout",
"GpuBufferBindingType",
"GpuBufferDescriptor",
"GpuBufferUsage",
"GpuCanvasContext",
"GpuCanvasConfiguration",
"GpuColorDict",
"GpuColorTargetState",
"GpuColorWrite",
"GpuCommandBuffer",
"GpuCommandBufferDescriptor",
"GpuCommandEncoder",
Expand All @@ -206,6 +204,7 @@ web-sys = { version = "0.3.57", features = [
"GpuDeviceDescriptor",
"GpuDeviceLostInfo",
"GpuDeviceLostReason",
"GpuError",
"GpuErrorFilter",
"GpuExtent3dDict",
"GpuFeatureName",
Expand All @@ -217,7 +216,8 @@ web-sys = { version = "0.3.57", features = [
"GpuImageDataLayout",
"GpuIndexFormat",
"GpuLoadOp",
"GpuMapMode",
"gpu_map_mode",
"GpuMipmapFilterMode",
"GpuMultisampleState",
"GpuObjectDescriptorBase",
"GpuOrigin2dDict",
Expand All @@ -226,7 +226,6 @@ web-sys = { version = "0.3.57", features = [
"GpuPipelineDescriptorBase",
"GpuPipelineLayout",
"GpuPipelineLayoutDescriptor",
"GpuPipelineStatisticName",
"GpuPowerPreference",
"GpuPrimitiveState",
"GpuPrimitiveTopology",
Expand All @@ -252,7 +251,6 @@ web-sys = { version = "0.3.57", features = [
"GpuSamplerDescriptor",
"GpuShaderModule",
"GpuShaderModuleDescriptor",
"GpuShaderStage",
"GpuStencilFaceState",
"GpuStencilOperation",
"GpuStorageTextureAccess",
Expand All @@ -267,7 +265,6 @@ web-sys = { version = "0.3.57", features = [
"GpuTextureDimension",
"GpuTextureFormat",
"GpuTextureSampleType",
"GpuTextureUsage",
"GpuTextureView",
"GpuTextureViewDescriptor",
"GpuTextureViewDimension",
Expand All @@ -285,13 +282,14 @@ web-sys = { version = "0.3.57", features = [
"ImageBitmapRenderingContext",
"Window"
] }
js-sys = "0.3.57"
wasm-bindgen-futures = "0.4.30"
wasm-bindgen = "0.2.81"
js-sys = "0.3.58"
wasm-bindgen-futures = "0.4.31"
# parking_lot 0.12 switches from `winapi` to `windows`; permit either
parking_lot = ">=0.11,<0.13"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
console_error_panic_hook = "0.1.6"
console_log = "0.1.2"
# We need the Location feature in the framework examples
web-sys = { version = "0.3.53", features = ["Location"] }
web-sys = { version = "0.3.58", features = ["Location"] }
Loading

0 comments on commit 44dae81

Please sign in to comment.