book/src/introduction.md
raylib-rs is a safe, idiomatic Rust binding to raylib 6.0 — the simple and easy-to-use game programming library. It lets you write 2D/3D games, simulations, and visualizations in Rust with the same low-ceremony feel as the original C library, without requiring unsafe in user code.
This book is for Rust developers who want to build interactive graphical applications — games, simulations, visualizations, or tools — using raylib's clean API. You should be comfortable with basic Rust (ownership, traits, closures), but you do not need prior game development experience. No C/C++ knowledge is required.
raylib-rs 6.0 covers the full raylib 6.0 surface:
ModelAnimations.AudioStream for custom mixing.PLATFORM=Memory backend for pixel-probe testing without a GPU or window.Getting Started — set up the dependency and open your first window in under 30 lines. Then follow the install guide for your platform (Windows, macOS, Linux, or Web/Wasm).
Core Concepts — the conventions that show up everywhere: the RaylibHandle/RaylibThread ownership model; RAII resources and how they are cleaned up; strings and allocations; safety rules; feature flags and platform support.
Modules — per-area narrative chapters: window and drawing, input, shapes, textures, text, 3D, audio, raymath, collision, raygui, rlgl, the software renderer, callbacks, and error handling.
Ecosystem — opt-in integrations: glam and mint for interop with other math libraries, serde for serialization, and pointers to what comes next.