sdl1_2-rs

Crates.iosdl1_2-rs
lib.rssdl1_2-rs
version0.3.7
sourcesrc
created_at2023-11-15 21:21:26.666317
updated_at2023-11-15 21:21:26.666317
descriptionSDL bindings
homepagehttps://github.com/brson/rust-sdl
repositoryhttps://github.com/brson/rust-sdl
max_upload_size
id1036845
size100,274
(blockiosaurus)

documentation

README

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.

Commit count: 409

cargo fmt