Skip to content

Commit a0a5372

Browse files
committed
Add migration guide
1 parent 929abb3 commit a0a5372

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "`bevy_reflect` reorganized to de-clutter the crate root"
3+
pull_requests: [22342]
4+
---
5+
6+
`bevy_reflect` has undergone a large reorganization. Many modules have been exposed in the crate root, each containing items relevant to their "kind" of reflected type:
7+
8+
* `array`
9+
* `enums`
10+
* `list`
11+
* `map`
12+
* `set`
13+
* `structs`
14+
* `tuple`
15+
* `tuple_struct`
16+
17+
For example, the `structs` module now contains the `Struct` trait, as well as related items like `DynamicStruct` or `StructInfo`.
18+
19+
This change was made to de-clutter the crate root of `bevy_reflect`, hopefully making it easier to find what traits and types you need for your use of reflection.
20+
21+
Migrating should only require editing your `use` statements. The Rust compiler will give hints at the new type paths, should you need any assistance.

0 commit comments

Comments
 (0)