https://github.com/ewpratten/raylib-ffi
"No frills" Rust bindings to raylib
https://github.com/ewpratten/raylib-ffi
raylib rust
Last synced: 26 days ago
JSON representation
"No frills" Rust bindings to raylib
- Host: GitHub
- URL: https://github.com/ewpratten/raylib-ffi
- Owner: ewpratten
- License: gpl-3.0
- Created: 2022-12-09T14:27:49.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-23T01:43:51.000Z (11 months ago)
- Last Synced: 2025-03-30T06:08:01.051Z (6 months ago)
- Topics: raylib, rust
- Language: Rust
- Homepage: https://crates.io/crates/raylib-ffi
- Size: 55.7 KB
- Stars: 38
- Watchers: 2
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Direct raylib bindings for Rust
[](https://crates.io/crates/raylib-ffi)
[](https://docs.rs/raylib-ffi)
[](https://github.com/Ewpratten/raylib-ffi/actions/workflows/build.yml)`raylib-ffi` aims to provide a "no frills" direct binding to [raylib](https://www.raylib.com/) 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:
```sh
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:
```sh
cargo run --example basic
```## Versioning policy
`raylib-ffi` follows [SemVer](https://semver.org/).
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.