Feature-gate render in bevy_ui
#16313
Labels
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Feature
A new feature, making something new possible
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
What problem does this solve or what need does it fill?
Due to
bevy_ui
's dependency onbevy_render
as a rendering backend which has a strong integration withwgpu
,bevy_ui
cannot currently supportno_std
. However, UI is foundational to many games, and other features ofbevy_ui
that would not depend onstd
(especially layouting) would be great to have inno_std
. Rendering should be feature-gated out ofbevy_ui
which would allow others to develop their own platform-specific render for UI.What solution would you like?
Add a
bevy_render
(orrender
) feature that would gate rendering integration withbevy_render
behind it. This should be enabled by default.What alternative(s) have you considered?
Break out the base UI Node and layouting systems into a separate crate (
bevy_layout
?) that could then be madeno_std
on its own. This could be confusing for people but also might be worth it ifbevy_ui
gets too big in the future.Additional context
no_std
support forbevy_ui
is also currently blocked onno_std
support forbevy_ecs
andbevy_app
(#15460), and a dependency withaccesskit
(#16312). These can be done in parallel however.The text was updated successfully, but these errors were encountered: