Bevy is a data-driven game engine and app framework written in Rust. It is free and open source, dual-licensed under MIT or Apache 2.0, with no license fees and no sales cuts.
Its defining choice is that everything runs on one Entity Component System, Bevy ECS: the renderer, the UI, scenes, animation, audio and your own game logic all use the same entities, components and systems.
Key Concepts
Bevy ECS with plain Rust types
Bevy’s ECS avoids the lifetimes, builder patterns and macro layers common in other Rust ECS libraries. Each concept maps to an ordinary Rust type:
- Components are structs that derive
Component. - Systems are normal Rust functions.
- Entities are a simple type wrapping a unique integer.
#[derive(Component)]
struct Position { x: f32, y: f32 }
fn print_position_system(query: Query<&Position>) {
for position in &query {
println!("position: {} {}", position.x, position.y);
}
}A system’s parameters declare what data it runs on.
Query<&Name, With<Person>> reads as “every Name on an entity that also has a Person”.
Apps, schedules and parallelism
An App registers systems into schedules such as Startup (runs once) and Update (runs every frame).
Systems run in parallel by default whenever their data access allows it; .chain() forces an order when one system must see another’s writes first.
fn main() {
App::new()
.add_systems(Startup, add_people)
.add_systems(Update, (hello_world, (update_people, greet_people).chain()))
.run();
}Beyond queries, the ECS offers global and local resources, change detection and a lock-free parallel scheduler.
Plugins and modularity
Engine features ship as plugins, and DefaultPlugins adds the standard set (window, input, rendering and so on).
The design goal is “use only what you need, replace what you don’t like”, which suits Rust’s crate-based composition.
Features
- 2D renderer: sprite sheets, dynamic texture atlases, cameras, textures and materials.
- 3D renderer: lights, shadows, meshes, materials and glTF loading.
- Render graph: custom render pipelines composed as a graph, rendered in parallel and not tied to one graphics API; WebGPU rendering on the web landed with 0.11.
- Animation: skeletal animation driven by an ECS joint API, blending, morph targets, glTF import.
- Bevy UI: an ECS-driven UI framework with a flexbox layout model.
- Scenes: save and load whole ECS worlds; loading keeps entity IDs, which suits save games.
- Hot reloading: scenes, textures and meshes update in a running app without a restart.
- Cross-platform: Windows, macOS, Linux, Web, iOS and Android.
- Fast compiles: a “fast compiles” configuration targets 0.8 to 3 seconds per incremental build.
Project and Governance
Bevy 0.1 was released in 2020 by its creator and project lead, @cart, and the project marked its sixth birthday in 2026. It is run by the Bevy Foundation, a non-profit that obtained US 501(c)(3) public charity status, and funded by donations from individuals and companies.
Bevy is still pre-1.0. A release with breaking API changes lands roughly every three months, each with a migration guide; 0.20 is the latest at the time of writing. The minimum supported Rust version tracks close to the latest stable release.
Why It Matters Here
Bevy is one of the clearest demonstrations that ECS scales from a gameplay pattern to the architecture of a whole engine. For a Rust developer it also shows the compiled-stack bet in practice: type-checked data access lets the scheduler parallelise safely, and the same code targets desktop, mobile and the browser.
Related Topics
- Entity Component System (ECS): the pattern Bevy is built on
- Rust
- Unity: a commercial engine whose DOTS stack also uses ECS
- WebAssembly
- Game Development