Closed
Description
How can Bevy's documentation be improved?
To be able to use WebGPU on web, you need to set the RUSTFLAGS
environment variable to --cfg=web_sys_unstable_apis
. Nowhere is it mentioned in the bevy docs, and it's not trivial to find out from searching the bevy repo.
Reading the docs at:
- https://github.com/bevyengine/bevy/blob/main/docs/cargo_features.md
- https://github.com/bevyengine/bevy/tree/main/examples
No mention is made of that environment variable. Also, it's implied that everything should work, there is no obvious disclaimer that it's "experimental" or "unsupported" and instructions are provided specifically wrt to WebGPU.
Apparently I'm not the only one who encountered this: #9177