How to Use the Bevy Game Engine in Rust

Install Bevy as a Cargo dependency and run a minimal App to start building games in Rust.

Bevy is a standalone Rust game engine installed as a Cargo dependency, not part of the Rust standard library or compiler. Add it to your Cargo.toml and run cargo run to start a new project.

[dependencies]
bevy = "0.15"

[package]
name = "my_game"
version = "0.1.0"
edition = "2024"
use bevy::prelude::*;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .run();
}