Skip to content

Commit

Permalink
Add missing dependencies to bevy_text feature (#8920)
Browse files Browse the repository at this point in the history
# Objective

- Fixes #8918.
- The app should not crash if only the `bevy_text` feature is enabled.

## Solution

The `bevy_text` feature now depends on `bevy_asset` and `bevy_sprite`,
because it uses resources from these crates.
  • Loading branch information
TimJentzsch authored Jun 22, 2023
1 parent ee1368a commit 0f242ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ bevy_scene = ["bevy_internal/bevy_scene", "bevy_asset"]
bevy_sprite = ["bevy_internal/bevy_sprite", "bevy_render", "bevy_core_pipeline"]

# Provides text functionality
bevy_text = ["bevy_internal/bevy_text"]
bevy_text = ["bevy_internal/bevy_text", "bevy_asset", "bevy_sprite"]

# A custom ECS-driven UI framework
bevy_ui = ["bevy_internal/bevy_ui", "bevy_core_pipeline", "bevy_text", "bevy_sprite"]
Expand Down

0 comments on commit 0f242ea

Please sign in to comment.