SDL bindings for Rust
Clone or download
Latest commit 78bd0e7 May 26, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Remove `feature(libc)` May 27, 2015
.gitignore oh well, fixed .travis.yml and .gitignore again. Aug 26, 2014
.travis.yml Test all release channels May 27, 2015
Cargo.toml Add missing dependency `libc` May 27, 2015
LICENSE.txt Added License information (MIT) Sep 10, 2012 Remove blurb about nightlies not working Feb 8, 2015


Bindings for SDL in Rust


Rust-SDL is a library for talking to SDL from Rust. Low-level C components are wrapped in Rust code to make them more idiomatic and abstract away inappropriate manual memory management.

In addition, it provides optional APIs to a number of common SDL extension libraries.

Rust-SDL uses the MIT license.




Clone this repo, run cargo build. To see an example of the code in use, rustc -L ./target src/sdl-demo/

SDL_mixer and SDL_image are available through separate packages, from within their respective directories, run cargo build to build. They depend on the main SDL library.

When things go wrong

Rust, and Rust-SDL, are both still heavily in development, and you may run into teething issues when using this. Before panicking, check that you're using the latest Master branch of Rust, check that you've updated Rust-SDL to the latest version, and run cargo clean. If that fails, please let us know on the issue tracker.