Archived
1
Fork 0
"No frills" Rust bindings to raylib
This repository has been archived on 2026-02-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Rust 98.8%
  • C 1.2%
Find a file
Evan Pratten 4224cc865e
Some checks failed
Build / Rust project (push) Has been cancelled
Build / Rust Crate (push) Has been cancelled
Configure automated crate packaging
2026-02-13 14:20:30 -05:00
.forgejo/workflows Configure automated crate packaging 2026-02-13 14:20:30 -05:00
.vscode Improve Rust enum translations 2023-04-12 13:13:15 -04:00
build Add num-traits support for enums 2024-01-29 11:01:32 -05:00
examples Move shaders 2023-12-20 10:15:21 +00:00
src Raylib 5.5 2024-11-22 20:43:48 -05:00
third_party Raylib 5.5 2024-11-22 20:43:48 -05:00
.gitignore Initial commit 2022-12-09 09:27:52 -05:00
.gitmodules Add deps list 2022-12-09 09:31:01 -05:00
Cargo.toml Migrate github.com -> git.ewpratten.com 2025-12-17 17:30:54 -05:00
CODEOWNERS Create CODEOWNERS 2025-05-22 09:53:35 -04:00
LICENSE Match upstream license 2025-05-21 16:00:16 -04:00
README.md docs 2023-04-12 15:51:59 -04:00

Direct raylib bindings for Rust

Crates.io Docs.rs Build Status

raylib-ffi aims to provide a "no frills" direct binding to raylib for rust developers.

This library is largely auto-generated by the code in build/. Raylib itself exposes lots of metadata, meaning that wrappers can auto-translate the C API into whatever language is needed (in this case, Rust).

Dependencies

Fedora:

dnf install clang-devel alsa-lib-devel mesa-libGL-devel libX11-devel libXrandr-devel libXi-devel libXcursor-devel libXinerama-devel libatomic cmake

Verifying your build

raylib-ffi bundles a rust version of the example project from raylib proper. To verify your build of this library worked, run:

cargo run --example basic

Versioning policy

raylib-ffi follows SemVer.

The major and minor version numbers of a raylib-ffi will always match the version of raylib it was built against. The patch version may be incremented if a rust-only fix is needed at any point.