Skip to content

Commit

Permalink
Pin web-sys dependency to < 0.3.70. (#159)
Browse files Browse the repository at this point in the history
This allows `eframe_template` to compile when switching from `glow` to
`wgpu` backend.

Fixes #158.
  • Loading branch information
BGR360 authored Sep 2, 2024
1 parent 18a8e76 commit 5056822
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ wasm-bindgen-futures = "0.4"

# to access the DOM (to hide the loading text)
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.4"
# HACK: pin web-sys to <0.3.70 until a new `eframe` is released containing
# the following PR: https://github.com/emilk/egui/pull/4980
version = ">= 0.3.4, < 0.3.70"

[profile.release]
opt-level = 2 # fast and small wasm
Expand Down

0 comments on commit 5056822

Please sign in to comment.