2020-04-06 21:20:53 +00:00
|
|
|
[package]
|
|
|
|
name = "bevy_ui"
|
2024-07-08 12:54:08 +00:00
|
|
|
version = "0.15.0-dev"
|
2021-10-27 00:12:14 +00:00
|
|
|
edition = "2021"
|
2020-08-10 00:24:27 +00:00
|
|
|
description = "A custom ECS-driven UI framework built specifically for Bevy Engine"
|
|
|
|
homepage = "https://bevyengine.org"
|
|
|
|
repository = "https://github.com/bevyengine/bevy"
|
2021-07-23 21:11:51 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2020-08-10 00:24:27 +00:00
|
|
|
keywords = ["bevy"]
|
2020-04-06 21:20:53 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2020-08-10 00:39:28 +00:00
|
|
|
# bevy
|
2024-07-08 12:54:08 +00:00
|
|
|
bevy_a11y = { path = "../bevy_a11y", version = "0.15.0-dev" }
|
|
|
|
bevy_app = { path = "../bevy_app", version = "0.15.0-dev" }
|
|
|
|
bevy_asset = { path = "../bevy_asset", version = "0.15.0-dev" }
|
|
|
|
bevy_color = { path = "../bevy_color", version = "0.15.0-dev" }
|
|
|
|
bevy_core_pipeline = { path = "../bevy_core_pipeline", version = "0.15.0-dev" }
|
|
|
|
bevy_derive = { path = "../bevy_derive", version = "0.15.0-dev" }
|
|
|
|
bevy_ecs = { path = "../bevy_ecs", version = "0.15.0-dev" }
|
|
|
|
bevy_hierarchy = { path = "../bevy_hierarchy", version = "0.15.0-dev" }
|
2024-11-10 06:54:38 +00:00
|
|
|
bevy_image = { path = "../bevy_image", version = "0.15.0-dev" }
|
2024-07-08 12:54:08 +00:00
|
|
|
bevy_input = { path = "../bevy_input", version = "0.15.0-dev" }
|
|
|
|
bevy_math = { path = "../bevy_math", version = "0.15.0-dev" }
|
|
|
|
bevy_reflect = { path = "../bevy_reflect", version = "0.15.0-dev", features = [
|
2023-11-21 01:04:14 +00:00
|
|
|
"bevy",
|
2022-06-21 22:57:59 +00:00
|
|
|
] }
|
2024-07-08 12:54:08 +00:00
|
|
|
bevy_render = { path = "../bevy_render", version = "0.15.0-dev" }
|
|
|
|
bevy_sprite = { path = "../bevy_sprite", version = "0.15.0-dev" }
|
2024-11-11 22:50:56 +00:00
|
|
|
bevy_text = { path = "../bevy_text", version = "0.15.0-dev" }
|
2024-08-15 14:43:55 +00:00
|
|
|
bevy_picking = { path = "../bevy_picking", version = "0.15.0-dev", optional = true }
|
2024-07-08 12:54:08 +00:00
|
|
|
bevy_transform = { path = "../bevy_transform", version = "0.15.0-dev" }
|
|
|
|
bevy_window = { path = "../bevy_window", version = "0.15.0-dev" }
|
|
|
|
bevy_utils = { path = "../bevy_utils", version = "0.15.0-dev" }
|
2020-07-25 06:04:45 +00:00
|
|
|
|
2020-08-10 00:39:28 +00:00
|
|
|
# other
|
2024-12-03 17:16:35 +00:00
|
|
|
taffy = { version = "0.6" }
|
2024-01-03 17:52:16 +00:00
|
|
|
serde = { version = "1", features = ["derive"], optional = true }
|
2021-12-14 03:58:23 +00:00
|
|
|
bytemuck = { version = "1.5", features = ["derive"] }
|
2024-12-06 17:03:55 +00:00
|
|
|
thiserror = { version = "2", default-features = false }
|
|
|
|
derive_more = { version = "1", default-features = false, features = ["from"] }
|
2024-03-07 02:30:15 +00:00
|
|
|
nonmax = "0.5"
|
|
|
|
smallvec = "1.11"
|
2024-11-08 21:01:16 +00:00
|
|
|
accesskit = "0.17"
|
2023-11-18 20:58:48 +00:00
|
|
|
|
2024-01-03 17:52:16 +00:00
|
|
|
[features]
|
2024-12-11 00:49:47 +00:00
|
|
|
default = []
|
2024-07-29 23:34:07 +00:00
|
|
|
serialize = ["serde", "smallvec/serde", "bevy_math/serialize"]
|
2024-09-22 19:35:15 +00:00
|
|
|
bevy_ui_picking_backend = ["bevy_picking"]
|
2024-12-11 00:49:47 +00:00
|
|
|
bevy_ui_debug = []
|
2024-03-08 20:03:09 +00:00
|
|
|
|
Mark ghost nodes as experimental and partially feature flag them (#15961)
# Objective
As discussed in #15341, ghost nodes are a contentious and experimental
feature. In the interest of enabling ecosystem experimentation, we've
decided to keep them in Bevy 0.15.
That said, we don't use them internally, and don't expect third-party
crates to support them. If the experimentation returns a negative result
(they aren't very useful, an alternative design is preferred etc) they
will be removed.
We should clearly communicate this status to users, and make sure that
users don't use ghost nodes in their projects without a very clear
understanding of what they're getting themselves into.
## Solution
To make life easy for users (and Bevy), `GhostNode` and all associated
helpers remain public and are always available.
However, actually constructing these requires enabling a feature flag
that's clearly marked as experimental. To do so, I've added a
meaningless private field.
When the feature flag is enabled, our constructs (`new` and `default`)
can be used. I've added a `new` constructor, which should be preferred
over `Default::default` as that can be readily deprecated, allowing us
to prompt users to swap over to the much nicer `GhostNode` syntax once
this is a unit struct again.
Full credit: this was mostly @cart's design: I'm just implementing it!
## Testing
I've run the ghost_nodes example and it fails to compile without the
feature flag. With the feature flag, it works fine :)
---------
Co-authored-by: Zachary Harrold <zac@harrold.com.au>
2024-10-16 22:20:48 +00:00
|
|
|
# Experimental features
|
|
|
|
ghost_nodes = []
|
|
|
|
|
2023-11-18 20:58:48 +00:00
|
|
|
[lints]
|
|
|
|
workspace = true
|
2024-03-23 02:22:52 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
2024-07-29 23:10:16 +00:00
|
|
|
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
|
2024-03-23 02:22:52 +00:00
|
|
|
all-features = true
|