#raylib #graphics

sys raylib-ffi

Automatic raw Rust bindings to raylib

9 stable releases

5.0.0 Nov 18, 2023
4.5.5 Oct 16, 2023
4.5.3 Apr 12, 2023
4.2.0 Dec 9, 2022

#79 in Multimedia

Download history 44/week @ 2023-08-17 36/week @ 2023-08-24 15/week @ 2023-08-31 21/week @ 2023-09-07 41/week @ 2023-09-14 22/week @ 2023-09-21 30/week @ 2023-09-28 26/week @ 2023-10-05 86/week @ 2023-10-12 55/week @ 2023-10-19 49/week @ 2023-10-26 41/week @ 2023-11-02 40/week @ 2023-11-09 77/week @ 2023-11-16 60/week @ 2023-11-23 59/week @ 2023-11-30

241 downloads per month
Used in 2 crates

GPL-3.0 license

2.5MB
57K SLoC

C 45K SLoC // 0.2% comments Lua 7.5K SLoC Objective-C 3K SLoC // 0.1% comments Rust 266 SLoC // 0.1% comments Zig 195 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.

No runtime deps