Commit Graph

4 Commits

Author SHA1 Message Date
Giacomo Stevanato
a5c392180b
Fix soundness issue and add more migration docs 2025-07-17 18:56:12 +02:00
Giacomo Stevanato
e335244112
Rewrite required components 2025-07-14 20:39:21 +02:00
Giacomo Stevanato
c182932618
Move recursion_check_stack parameter into ComponentsRegistrator 2025-07-14 20:39:20 +02:00
Giacomo Stevanato
6f6d8312f3
Split component.rs (#20063)
# Objective

- `component.rs` is becoming quite big, let's split it.

## Solution

- Split `component.rs` into the following:
- `component/mod.rs`: the new root of the `component` module: contains
the `Component` trait and a few other very generic items
  - `component/clone.rs`: contains component cloning related items
  - `component/tick.rs`: contains `Tick` and other tick related items
- future possibilities: move these into `change_detection`; however I
wanted to keep this PR without breaking changes
- `component/register.rs`: contains component registration (included
queued) related items
- `component/required.rs`: contains items and functions for properly
computing required components
- `component/info.rs`: contains items for storing component info and
metadata in the `World`
2025-07-09 20:07:11 +00:00