Skip to content

Mention --cfg=web_sys_unstable_apis in WebGPU build instructions #9382

Closed
@nicopap

Description

@nicopap

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-DocsAn addition or correction to our documentationD-TrivialNice and easy! A great choice to get started with BevyO-WebGPUSpecific to the WebGPU render API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions