#raylib #safe-wrapper #graphics #bindings #version #api-bindings #targets

sys rust-raylib

Unsafe bindings for Raylib 4.5 and safe wrappers for them

12 releases

0.45.11 Apr 10, 2024
0.45.10 Apr 9, 2024
0.45.9 Dec 25, 2023
0.45.8 Oct 9, 2023
0.45.4 Sep 17, 2023

#68 in Multimedia

Download history 9/week @ 2024-09-22 10/week @ 2024-09-29 3/week @ 2024-10-06 179/week @ 2024-12-01

179 downloads per month

Zlib license

2.5MB
58K SLoC

C 42K SLoC // 0.1% comments Lua 7.5K SLoC Rust 5K SLoC // 0.0% comments Objective-C 3K SLoC // 0.1% comments Zig 110 SLoC // 0.1% comments

rust-raylib

Unsafe bindings for raylib and safe wrappers for them. Currently targets raylib 4.5.

Some features (like logging and text formatting) are excluded from the wrappers, because there are more safe and idiomatic solutions available for them.

The minor version of the crate follows raylib's major and minor versions (i.e. 0.45.X for raylib 4.5) It will only be increased when updated to a new raylib version. The patch version is increased when new fixes and/or improvements are introduced. They may contain breaking changes!

Cargo features

  • serde: serde support for most types.
  • rl-opengl-***: force raylib to use a specific GL version. If none are selected, raylib will choose on its own.

Dependencies