bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.09k stars 3.56k forks source link

AccessKit `Node` Re-export is Confusing with Bevy's `Node` #16235

Open bushrat011899 opened 7 hours ago

bushrat011899 commented 7 hours ago

Bevy version

main/0.15 RC

Description

The bevy_a11y re-exports AccessKit's Node, but that can be confusing since bevy_ui also defines a Node. Since #16234, there is now a way to use AccessKit without importing accesskit::Node. Now that it is optional, we should reconsider the way Bevy re-exports AccessKit. For example, only re-exporting Role.

Context

This was raised by @alice-i-cecile in this Discord message.

alice-i-cecile commented 7 hours ago

I think we should not re-export at all here, and state in the docs that the versions must match.