Registry / other / bevy-ecs

bevy-ecs

JSON →
library0.18.1rscratesunverified

The entity component system (ECS) core of the Bevy game engine, providing data-oriented design for game development.

# Cargo.toml [dependencies] bevy_ecs = "0.18.1"
INSTALL
IMPORT
SIG · BEVY-ECS
B
bevy-ecs
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.

World
use bevy_ecs::prelude::*;

Creates a world and spawns an entity with a Position component.

use bevy_ecs::prelude::*; #[derive(Component)] struct Position { x: f32, y: f32 } fn main() { let mut world = World::new(); world.spawn(Position { x: 0.0, y: 0.0 }); println!("Entity spawned"); }
Debug
Known issues
gotchaBevy ECS requires the `bevy` framework or specific feature flags; standalone usage may need `bevy_ecs` with default features.
fix
Add `bevy_ecs = "0.18"` to Cargo.toml and ensure you use the correct version matching Bevy releases.
affects: >=0.18.0
Upgrade
Version history
0.18.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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