2 releases

Uses old Rust 2015

0.3.6 Jun 3, 2015
0.3.5 Nov 24, 2014

#778 in Hardware support

Download history 17/week @ 2023-10-13 23/week @ 2023-10-20 24/week @ 2023-10-27 19/week @ 2023-11-03 24/week @ 2023-11-10 22/week @ 2023-11-17 21/week @ 2023-11-24 26/week @ 2023-12-01 17/week @ 2023-12-08 19/week @ 2023-12-15 26/week @ 2023-12-22 13/week @ 2023-12-29 21/week @ 2024-01-05 18/week @ 2024-01-12 16/week @ 2024-01-19 21/week @ 2024-01-26

79 downloads per month

MIT license

97KB
3K SLoC

Rust-SDL

Bindings for SDL in Rust

Overview

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.

Requirements

Optional

Installation

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

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.

Dependencies

~475–770KB
~11K SLoC