# Rust-SDL2/rust-sdl2

SDL2 bindings for Rust

Repository: https://github.com/Rust-SDL2/rust-sdl2
Canonical: https://ross.abutalabs.com/products/rust-sdl2
Language: Rust
License: MIT
License Family: permissive
Last push: 2026-03-22T12:28:05+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 73, release rhythm 35, longevity 100
- inputs: {"age_days": 4764, "days_push": 164, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2949, forks 472 (observed 2026-08-28T04:07:31.906839+00:00)

## What it is
Rust bindings for the SDL2 multimedia library, wrapping low-level C APIs in idiomatic Rust. It provides access to graphics, audio, input, and font features with optional integration of SDL2_gfx, SDL2_image, SDL2_mixer, and SDL2_ttf.

## Use cases
- build 2D games in Rust
- render graphics with SDL2 from Rust
- handle keyboard and mouse input in a Rust game
- play and mix audio in a Rust application
- load images and render TTF fonts in Rust

## When to choose
- you want idiomatic Rust access to SDL2's mature multimedia APIs
- you need cross-platform windowing, input, and audio for a game or multimedia app
- you want optional bundled compilation of SDL2 to simplify builds

## When to avoid
- you need a full high-level game engine rather than low-level multimedia bindings
- you are building 3D games needing a modern GPU abstraction like wgpu
- you prefer a pure-Rust stack without C library dependencies

## Facets
- artifact type: library
- maturity: active
- function: graphics, game-engine, audio-processing, image-processing
- domain: graphics, cross-platform
- platform: rust, cpp, cross-platform, windows
- tags: sdl2, bindings, multimedia, game-development, ffi, linux, macos, ios, android

## Member repositories
- Rust-SDL2/rust-sdl2 (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:31.906839+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:32:44.039300+00:00, confidence not recorded.
  - readme: https://github.com/Rust-SDL2/rust-sdl2 (fetched 2026-08-28T04:07:31.906839+00:00, sha 075ae332f74f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
