Skip to content

Commit

Permalink
Re-add WASM workaround
Browse files Browse the repository at this point in the history
AHash reverted the change that made this workaround unnecessary:
tkaitchuck/aHash#145

This reverts commit 259f31f.
  • Loading branch information
hannobraun committed Nov 15, 2022
1 parent d5fe591 commit 4eca77d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

6 changes: 6 additions & 0 deletions crates/fj-viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ features = ["xdg-portal"]
[dependencies.wgpu]
version = "0.13.1"
features = ["webgl"]

# We don't depend on `getrandom` directly, but we need this to enable the `js`
# feature when cross-compiling to WASM. Otherwise, `getrandom` will not build.
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2.8"
features = ["js"]

0 comments on commit 4eca77d

Please sign in to comment.