12 stable releases

5.5.0 Nov 23, 2024
5.0.2 Sep 26, 2024
5.0.1 Jan 29, 2024
5.0.0 Nov 18, 2023
4.2.0 Dec 9, 2022

#90 in Rendering

Download history 153/week @ 2024-11-20 21/week @ 2024-11-27 121/week @ 2024-12-04 159/week @ 2024-12-11 70/week @ 2024-12-18 31/week @ 2024-12-25 56/week @ 2025-01-01 76/week @ 2025-01-08 37/week @ 2025-01-15 15/week @ 2025-01-22 27/week @ 2025-02-05 53/week @ 2025-02-12 7/week @ 2025-02-19 37/week @ 2025-02-26 3/week @ 2025-03-05

101 downloads per month
Used in 6 crates (4 directly)

GPL-3.0 license

3MB
62K SLoC

C 50K SLoC // 0.2% comments Lua 8K SLoC Objective-C 3K SLoC // 0.1% comments Zig 332 SLoC // 0.1% comments Rust 261 SLoC // 0.1% comments

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.

Dependencies