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

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

#63 in Multimedia

Download history 1/week @ 2023-12-29 5/week @ 2024-02-23 20/week @ 2024-03-01 71/week @ 2024-03-08 5/week @ 2024-03-15 5/week @ 2024-03-29 241/week @ 2024-04-05 42/week @ 2024-04-12

288 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