A collection of simple Rust projects to demonstrate how to build:
- โ A basic Hello World CLI
- ๐ฎ A Sample Game using
raylib
- ๐ A basic Web Server that serves HTML pages
rust-examples
โโโ hello-world # Minimal Hello World CLI app
โโโ sample-game # A simple interactive game
โโโ web-server # Basic web server with static HTML support
A simple CLI program to verify your Rust setup.
Run it:
cd hello-world
make run
A basic 2D game using raylib and Rust bindings.
Dependencies:
Install raylib
system dependencies:
# Debian/Ubuntu
sudo apt install libraylib-dev
Run it:
cd sample-game
make run
A minimal static file server written in Rust that serves HTML pages from the pages/
folder.
Run it:
cd web-server
make run
Visit:
Open http://localhost:11500 in your browser.
- Rust (via rustup.rs)
- Make (for using the provided
Makefile
) - Optional system libraries (e.g.
libraylib-dev
)