Skip to content

hgalant/sdl2_rust_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDL2 Rust Template

An SDL2 template for Rust, targeting Linux, MacOS, and Windows (x64 MSVC) builds.

rust-sdl2 documentation

Project Generation

Ensure cargo-generate is installed:

cargo install cargo-generate

And generate with:

cargo generate --git hgalant/sdl2_rust_template

Environment

Note: The template's build script assumes the environment variable CARGO_TARGET_DIR is unset when building for Windows.

  • For Linux/MacOS builds: install SDL2 and other necessary packages (e.g. SDL_image) via your package-manager (more details here).

  • For Windows builds: library files are included for SDL2, SDL_image, and SDL_ttf in lib/. You can remove unnecessary or add unincluded SDL dependencies (e.g. SDL_mixer) as needed.

About

A cargo-generate template for SDL2.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages