Registry / other / hecs
library0.11.0rscratesunverified

A fast, minimal, and ergonomic entity-component-system library

# Cargo.toml [dependencies] hecs = "0.11.0"
INSTALL
IMPORT
SIG · HECS
H
hecs
otherrustv0.11.0
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 hecs::World;

Create a world and spawn an entity with a component

use hecs::World; struct Position(f32, f32); fn main() { let mut world = World::new(); let entity = world.spawn((Position(0.0, 0.0),)); println!("Entity {:?} spawned", entity); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
hecs — cargo add hecs · libregistry