mirror of
https://github.com/bevyengine/bevy
synced 2024-12-22 02:53:07 +00:00
b2d417b03d
# Objective - `bevy_gizmos` cannot work if both `bevy_sprite` and `bevy_pbr` are disabled. - It silently fails to render, making it difficult to debug. - Fixes #10984 ## Solution - Log an error message when `GizmoPlugin` is registered. ## Alternatives I chose to log an error message, since it seemed the least intrusive of potential solutions. Some alternatives include: - Choosing one dependency as the default, neglecting the other. (#11035) - Raising a compile error when neither dependency is enabled. ([See my original comment](https://github.com/bevyengine/bevy/issues/10984#issuecomment-1873420426)) - Raising a compile warning using a macro hack. ([Pre-RFC - Add compile_warning! macro](https://internals.rust-lang.org/t/pre-rfc-add-compile-warning-macro/9370/7?u=bd103)) - Logging a warning instead of an error. - _This might be the better option. Let me know if I should change it._ --- ## Changelog - `bevy_gizmos` will now log an error if neither `bevy_pbr` nor `bevy_sprite` are enabled.
31 lines
1.1 KiB
TOML
31 lines
1.1 KiB
TOML
[package]
|
|
name = "bevy_gizmos"
|
|
version = "0.12.0"
|
|
edition = "2021"
|
|
description = "Provides gizmos for Bevy Engine"
|
|
homepage = "https://bevyengine.org"
|
|
repository = "https://github.com/bevyengine/bevy"
|
|
license = "MIT OR Apache-2.0"
|
|
keywords = ["bevy"]
|
|
|
|
[features]
|
|
webgl = []
|
|
|
|
[dependencies]
|
|
# Bevy
|
|
bevy_pbr = { path = "../bevy_pbr", version = "0.12.0", optional = true }
|
|
bevy_sprite = { path = "../bevy_sprite", version = "0.12.0", optional = true }
|
|
bevy_app = { path = "../bevy_app", version = "0.12.0" }
|
|
bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" }
|
|
bevy_math = { path = "../bevy_math", version = "0.12.0" }
|
|
bevy_asset = { path = "../bevy_asset", version = "0.12.0" }
|
|
bevy_render = { path = "../bevy_render", version = "0.12.0" }
|
|
bevy_utils = { path = "../bevy_utils", version = "0.12.0" }
|
|
bevy_core = { path = "../bevy_core", version = "0.12.0" }
|
|
bevy_reflect = { path = "../bevy_reflect", version = "0.12.0" }
|
|
bevy_core_pipeline = { path = "../bevy_core_pipeline", version = "0.12.0" }
|
|
bevy_transform = { path = "../bevy_transform", version = "0.12.0" }
|
|
bevy_log = { path = "../bevy_log", version = "0.12.0" }
|
|
|
|
[lints]
|
|
workspace = true
|