Feature-gate accessibility in bevy_ui
#16312
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 onaccesskit
(andbevy_a11y
) which depends onstd
,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
. While accessibility features may be valuable to have inno_std
, we are currently blocked on the ecosystem. In the meantime, these features should be feature-gated out ofbevy_ui
to allow for futureno_std
support.What solution would you like?
Add an
accessibility
feature and gate integration withaccesskit
andbevy_a11y
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 withbevy_render
(#16313). These can be done in parallel however.The text was updated successfully, but these errors were encountered: