Reflect trait should not require Send + Sync bounds #16713
Labels
A-Reflection
Runtime information about types
C-Bug
An unexpected or incorrect behavior
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!
X-Uncontroversial
This work is generally agreed upon
Bevy version
0.15
Problem
Reflect
has no intrinsic need to be Send + Sync. This limits its uses, especially in a broader non-Bevy context.Solution
Remove
Send
+Sync
trait bounds, adding them locally to any methods that fail to compile.Context
According to @MrGVSV, this was originally for compatibility with components, before the explicit
Component
trait was added. This is backed up by Cart hereThe text was updated successfully, but these errors were encountered: