no-std beryllium

An opinionated set of high level wrappers for the fermium SDL2 bindings

20 releases

✓ Uses Rust 2018 edition

new 0.1.2 Oct 13, 2019
0.1.1 Oct 12, 2019
0.0.17 Aug 2, 2019
0.0.15 Jul 18, 2019
0.0.3 May 28, 2019

#23 in Multimedia

Download history 177/week @ 2019-06-30 63/week @ 2019-07-07 54/week @ 2019-07-14 283/week @ 2019-07-21 110/week @ 2019-07-28 118/week @ 2019-08-04 38/week @ 2019-08-11 24/week @ 2019-08-18 80/week @ 2019-08-25 97/week @ 2019-09-01 170/week @ 2019-09-08 91/week @ 2019-09-15 201/week @ 2019-09-22 156/week @ 2019-09-29 118/week @ 2019-10-06

514 downloads per month
Used in 2 crates

Zlib license

3.5K SLoC

License:Zlib Minimum Rust Version AppVeyor TravisCI crates.io docs.rs


An opinionated set of "high level" wrappers for the fermium SDL2 bindings.

Compared to the usual sdl2, this is much closer to the actual SDL2 C API. It is, however, a lot less complete. If you want something added in just file and issue and we can probably work to get it done fairly easily. If you don't want to wait on me, just call into fermium directly.

There are examples available if you want to see it in action.


Obviously this uses SDL2. The fermium crate is used as the bindings crate. You will need version 2.0.8 or later:

  • On Windows all necessary files are provided automatically by fermium, you don't need to do any special setup at all.
  • On non-Windows you need to have installed SDL2 yourself ahead of time.

Window Subsystem

This isn't SDL2 specific, it's just a general Win32 thing, but you'll probably want to set the window_subsystem to "windows" in your programs. Just add this to the top of any binary or example:

#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

We only want it enabled when debug_assertions are not active, because it suppresses all default console output when it is enabled.

This line won't have any effect on the build outside Windows, so no worries about needing to check for the build being on windows.


This crate uses the Zlib license, the same license that SDL2 itself uses.

Nifty Project Logo

99% beryllium


~389K SLoC