Skip to content

Commit

Permalink
Update wgpu to 0.19.3
Browse files Browse the repository at this point in the history
WebGPU APIs are now vendored inside of wgpu, meaning the only reason we still need unstable web-sys is clipboard support in egui.
  • Loading branch information
Wumpf committed Mar 6, 2024
1 parent 8ebb5df commit ce6d4fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ IS_IN_RERUN_WORKSPACE = "yes"

# web_sys_unstable_apis is required to enable the web_sys clipboard API which egui_web uses,
# https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Clipboard.html
# as well as WebGPU apis.
# https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html
[target.wasm32-unknown-unknown]
rustflags = ["--cfg=web_sys_unstable_apis"]
17 changes: 9 additions & 8 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ walkdir = "2.0"
wasm-bindgen = "0.2.89"
wasm-bindgen-cli-support = "0.2.89"
wasm-bindgen-futures = "0.4.33"
# web-sys 0.3.68 contains breaking API changes in an unstable API used by wgpu
web-sys = "=0.3.67"
web-sys = "0.3"
web-time = "0.2.0"
webbrowser = "0.8"
winit = { version = "0.29.9", default-features = false }
Expand Down

0 comments on commit ce6d4fa

Please sign in to comment.