mirror of
https://github.com/bevyengine/bevy
synced 2025-03-07 08:47:24 +00:00
# Objective Make documentation of a component's required components more visible by moving it to the type's docs ## Solution Change `#[require]` from a derive macro helper to an attribute macro. Disadvantages: - this silences any unused code warnings on the component, as it is used by the macro! - need to import `require` if not using the ecs prelude (I have not included this in the migration guilde as Rust tooling already suggests the fix) --- ## Showcase  --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: JMS55 <47158642+JMS55@users.noreply.github.com> |
||
---|---|---|
.. | ||
bundle.rs | ||
components.rs | ||
dynamic_scene.rs | ||
dynamic_scene_builder.rs | ||
lib.rs | ||
scene.rs | ||
scene_filter.rs | ||
scene_loader.rs | ||
scene_spawner.rs | ||
serde.rs |