#gamedev #game-engine #wgpu #rhachis


A game framework based off wgpu and winit

16 releases (10 breaking)

0.11.0 Mar 30, 2023
0.9.0 Jan 12, 2023
0.8.2 Dec 20, 2022
0.6.1 Nov 23, 2022

#903 in Game dev

Download history 1/week @ 2023-11-03 18/week @ 2023-11-10 1/week @ 2023-11-17 17/week @ 2023-11-24 53/week @ 2023-12-01 17/week @ 2023-12-15 34/week @ 2023-12-22 16/week @ 2024-01-05 19/week @ 2024-01-26 17/week @ 2024-02-02 20/week @ 2024-02-09 223/week @ 2024-02-16

279 downloads per month

MIT license

4.5K SLoC

Crates.io Crates.io Docs.rs


Rhachis is a Rust framework primarily intended for making games. It intends to be as simple as possible, while still allowing all of the customisation you could want.

The core of the framework is its Game trait and GameData struct. The Game trait is the root of your project. Functions on it are called by the engine to perform many things like update game logic or initialise the game. A reference to the GameData struct is passed to these functions to access core components of the engine. These core components are all thread-safe, locked behind RwLocks if necessary.

Basic Usage

To start using Rhachis run cargo add rhachis to add the latest version to your Cargo.toml.

The code below shows the basic structure of a Rhachis project.

use rhachis::{graphics::EmptyRenderer, *};

// A procedural macro that starts the game from your struct.
// The EmptyRenderer is a renderer that does nothing and acts as a placeholder.
struct Window(EmptyRenderer);

// The Game trait handles the core event loop.
impl Game for Window {
    // Called to initialise the game state after core engine starts.
    fn init() -> Self {

    // Used to get the current renderer. It is in this function so that
    // renderers can be swapped on the fly.
    fn get_renderer(&mut self) -> &mut dyn graphics::Renderer {
        &mut self.0

More in depth examples can be found in the repository's examples directory.



~838K SLoC