Registry / other / bevy-ecs-macros

bevy-ecs-macros

JSON →
library0.18.1rscratesunverified

Provides procedural macros for the Bevy Entity Component System.

# Cargo.toml [dependencies] bevy_ecs_macros = "0.18.1"
INSTALL
IMPORT
SIG · BEVY-ECS-MACROS
B
bevy-ecs-macros
otherrustv0.18.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Component
use bevy_ecs_macros::Component;

Derive the Component trait for a custom struct.

use bevy_ecs_macros::Component; #[derive(Component)] struct Health(u32);
Debug
Known issues
gotchaRequires bevy_ecs as a dependency to function properly.
fix
Add bevy_ecs to your Cargo.toml dependencies.
affects: >=0.18.0
Upgrade
Version history
0.18.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Meta
1
OpenAI (training)
1
Resources
bevy-ecs-macros — cargo add bevy-ecs-macros · libregistry