-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorO-WebSpecific to web (WASM) buildsSpecific to web (WASM) buildsP-RegressionFunctionality that used to work but no longer does. Add a test for this!Functionality that used to work but no longer does. Add a test for this!S-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!
Description
Bevy version and features
bevy = { version = "0.17.0", default-features = false, features = ["web"] }bevy = { version = "0.18.0-rc.1", default-features = false, features = ["web"] }
[Optional] Relevant system information
cargo 1.92.0 (344c4567c 2025-10-21)--target=thumbv7em-none-eabihf(mostly-arbitrary choice ofno_stdtarget)
What you did
Writing libraries that use bevy_ecs and are intended to be compatible with both web targets and and non-web no_std targets
What went wrong
In Bevy 0.16, cargo build --target=thumbv7em-none-eabihf succeeds with the dependency specification
bevy = { version = "0.16.0", default-features = false, features = ["web"] }In later versions, the build fails due to attempting to build foldhash with the "std" feature enabled. There is nothing in https://bevy.org/learn/migration-guides/0-16-to-0-17/ documenting that this failure is expected.
Additional information
The question raised by this issue is: is the "web" feature intended to be harmless on non-web targets?
- If yes, then there has been a regression in
no_stdsupport since Bevy 0.17. - Either way, the documentation of the
"web"feature should be clarified. Currently, it says “Note this is currently only applicable onwasm32architectures”, but it is not clear whether “applicable” is intended to mean “is only compatible with” or “only affects”.
Metadata
Metadata
Assignees
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorO-WebSpecific to web (WASM) buildsSpecific to web (WASM) buildsP-RegressionFunctionality that used to work but no longer does. Add a test for this!Functionality that used to work but no longer does. Add a test for this!S-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!