mirror of
https://github.com/bevyengine/bevy
synced 2024-12-30 06:53:13 +00:00
589c52afe5
# Objective - Make bevy_app's optional bevy_reflect dependency actually optional - Because bevy_ecs has a default dependency on bevy_reflect, bevy_app includes bevy_reflect transitively even with default-features=false, despite the optional dependency indicating that it was intended to be able to leave out bevy_reflect. ## Solution - Make bevy_app not enable bevy_ecs's default features, and then use [the `dep:` syntax](https://doc.rust-lang.org/cargo/reference/features.html#optional-dependencies) introduced in 1.60 to make the default bevy_reflect feature enable bevy_ecs's bevy_reflect feature/dependency. --- ## Changelog - bevy_app no longer enables bevy_ecs's `bevy_reflect` feature when included without its own `bevy_reflect` feature (which is on by default). |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |