Skip to content

Commit

Permalink
--cfg=web_sys_unstable_apis is no longer needed in RUSTFLAGS to c…
Browse files Browse the repository at this point in the history
…ompile for WebGPU
  • Loading branch information
jinleili committed Jun 22, 2024
1 parent a1d75e4 commit 4ceb26c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Bevy in Web Worker
[README 中文](README_zh.md)
[README 中文](./README_zh.md)

Showcasing how to run the `Bevy` App within a `Web Worker` and the interaction between HTML elements and Bevy.

Expand Down
2 changes: 1 addition & 1 deletion build-wasm.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set -e

RUSTFLAGS=--cfg=web_sys_unstable_apis cargo build --no-default-features --profile wasm-release \
cargo build --no-default-features --profile wasm-release \
--target wasm32-unknown-unknown

# Generate bindings
Expand Down
2 changes: 1 addition & 1 deletion run-wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set -e

# worker 中运行时,debug 模式下会有前几帧须要拉长帧时间间隔的问题
# https://github.com/bevyengine/bevy/issues/13345
RUSTFLAGS=--cfg=web_sys_unstable_apis cargo build --no-default-features \
cargo build --no-default-features \
--target wasm32-unknown-unknown

# Generate bindings
Expand Down

0 comments on commit 4ceb26c

Please sign in to comment.