-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with BevyS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!
Milestone
Description
Bevy version
What you did
Create an empty rust project. Edit Cargo.toml to add a dependency on bevy_state with default_features = false and features = [ "bevy_app" ]
bevy_state = { git = "https://github.com/bevyengine/bevy.git", default-features = false, features = [
"bevy_app",
], }Try to compile
What went wrong
Crate won't compile with the error:
error[E0046]: not all trait items implemented, missing: `enable_state_scoped_entities`
Additional information
This is because AppExtStates has a method enable_state_scoped_entities, but it's implementation on App is behind the bevy_hierarchy feature flag.
If this is required, I think either bevy_app should automatically enable the bevy_hierarchy feature, or the method in the trait should be feature gated as well.
Metadata
Metadata
Assignees
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with BevyS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!