From e01af0f76351bf50f9ff51d720df5100137626f3 Mon Sep 17 00:00:00 2001 From: Nicola Papale Date: Wed, 1 Mar 2023 09:28:20 +0100 Subject: [PATCH] Add depending bevy features for higher level one - Fixes #7854 Typically, when using a bevy feature such as `bevy_pbr`, users will need to spawn a camera, sometimes manipulate meshes. Which requires enabling other bevy features. This commit adds those features as dependencies of "higher level" features, so that the end user is not burdened with hunting which feature need which other feature. --- Cargo.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f334b03b4d3aa..900e7346eaa95 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,7 +66,7 @@ bevy_asset = ["bevy_internal/bevy_asset"] bevy_audio = ["bevy_internal/bevy_audio"] # Provides cameras and other basic render pipeline features -bevy_core_pipeline = ["bevy_internal/bevy_core_pipeline"] +bevy_core_pipeline = ["bevy_internal/bevy_core_pipeline", "bevy_asset", "bevy_render"] # Plugin for dynamic loading (using [libloading](https://crates.io/crates/libloading)) bevy_dynamic_plugin = ["bevy_internal/bevy_dynamic_plugin"] @@ -75,25 +75,25 @@ bevy_dynamic_plugin = ["bevy_internal/bevy_dynamic_plugin"] bevy_gilrs = ["bevy_internal/bevy_gilrs"] # [glTF](https://www.khronos.org/gltf/) support -bevy_gltf = ["bevy_internal/bevy_gltf"] +bevy_gltf = ["bevy_internal/bevy_gltf", "bevy_asset", "bevy_scene", "bevy_pbr"] # Adds PBR rendering -bevy_pbr = ["bevy_internal/bevy_pbr"] +bevy_pbr = ["bevy_internal/bevy_pbr", "bevy_asset", "bevy_render", "bevy_core_pipeline"] # Provides rendering functionality bevy_render = ["bevy_internal/bevy_render"] # Provides scene functionality -bevy_scene = ["bevy_internal/bevy_scene"] +bevy_scene = ["bevy_internal/bevy_scene", "bevy_asset"] # Provides sprite functionality -bevy_sprite = ["bevy_internal/bevy_sprite"] +bevy_sprite = ["bevy_internal/bevy_sprite", "bevy_render", "bevy_core_pipeline"] # Provides text functionality bevy_text = ["bevy_internal/bevy_text"] # A custom ECS-driven UI framework -bevy_ui = ["bevy_internal/bevy_ui"] +bevy_ui = ["bevy_internal/bevy_ui", "bevy_core_pipeline", "bevy_text", "bevy_sprite"] # winit window and input backend bevy_winit = ["bevy_internal/bevy_winit"]