29 lines
1.3 KiB
Markdown
29 lines
1.3 KiB
Markdown
# 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. Unlike the [`raylib-rs` project](https://github.com/deltaphc/raylib-rs), this library trades high-level abstractions for staying truly up to date with upstream raylib (instead of a whole major version behind).
|
|
|
|
## 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` follow [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.
|