Rust MIT

piston

A modular game engine written in Rust

P

PistonDevelopers

Dernière activité 26 août 2026
PistonDevelopers/piston

4,7 k

étoiles

235

forks

36

issues ouvertes

modular-game-enginepistonrust

Ce README est souvent en anglais.

Piston

Crates.io Crates.io

A Piston core for the Piston game engine, a modular game engine written in Rust.

Design

Piston's architecture decouples backend-specific code from abstraction. When you design a library for the Piston ecosystem, you write code using generics and traits, without depending on backends. Backends implement the traits and are plugged in at application level of coding.

This design fits with Rust's type system and improves ecosystem stability. The default programming pattern is Model-View-Controller (MVP). However, there are no traits needed to use this pattern.

  • A model is simply some data structure, database etc.
  • A view is how something is rendered
  • A controller stores the state, transforms input events into other events or actions, or deals with application logic in general.

Piston's philosophy is "less is more". As much as possible of the ecosystem is decoupled from the core and shared with the broader Rust ecosystem. This blurs the boundary between what is Piston and what is just Rust, but it also helps developers write the code they need for some specific application, without inventing entire new frameworks to solve their problems.

Remember to take regular breaks, ideally with some physical exercise.

Developers who use Piston typically maintain their code bases for long periods of time, where the main problem is reducing the costs of maintenance. Such code bases often use multiple programming languages, not just Rust. Patterns to solve small technical problems can reduce cognitive load, but if they do not work well with the rest of the ecosystem, such patterns increase maintenance costs.

You might find Piston's architecture boring, which is a good thing: A design optimized for overall quality of life.

Introduction

Projets similaires

A simple Minecraft written in Rust with the Piston game engine

Rustminecraftpiston-game-enginerust
PPistonDevelopers
1,9 k étoiles106

A refreshingly simple data-driven game engine built in Rust

Rustbevygame-developmentgame-engine
Bbevyengine
48,5 k étoiles4,9 k

3D and 2D game engine written in Rust

Rust3d3d-engineengine
FFyroxEngine
9,6 k étoiles451