docs.rs failed to build sdl-0.3.5
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: sdl-0.3.6

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

  • Rust - we currently compile against the Master branch. The releases on http://www.rust-lang.org tend to not work.
  • SDL 1.2 development libraries - install through your favourite package management tool, or via http://www.libsdl.org/

Optional

Installation

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

SDL_mixer and SDL_image are available through separate packages, run rustc -L. src/sdl_mixer/lib.rs and rustc -L. src/sdl_image/lib.rs 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 make clean and ./configure. If that fails, please let us know on the issue tracker.