52 releases (23 stable)

22605.0.0 Apr 21, 2023
22604.0.1 Apr 15, 2023
22604.0.0 Mar 8, 2023
22603.0.0 Mar 1, 2023
0.0.15 Jun 11, 2019

#62 in No standard library

Download history 126/week @ 2024-06-09 146/week @ 2024-06-16 142/week @ 2024-06-23 154/week @ 2024-06-30 419/week @ 2024-07-07 124/week @ 2024-07-14 89/week @ 2024-07-21 403/week @ 2024-07-28 125/week @ 2024-08-04 133/week @ 2024-08-11 92/week @ 2024-08-18 111/week @ 2024-08-25 133/week @ 2024-09-01 128/week @ 2024-09-08 75/week @ 2024-09-15 353/week @ 2024-09-22

706 downloads per month
Used in 14 crates (7 directly)

Zlib OR Apache-2.0 OR MIT

16MB
288K SLoC

C 228K SLoC // 0.1% comments Objective-C 14K SLoC // 0.1% comments Shell 9K SLoC // 0.2% comments Visual Studio Project 8K SLoC M4 8K SLoC // 0.2% comments C++ 8K SLoC // 0.2% comments Rust 4.5K SLoC // 0.0% comments Java 4K SLoC // 0.2% comments Perl 2K SLoC // 0.1% comments GNU Style Assembly 661 SLoC // 0.2% comments Visual Studio Solution 416 SLoC JavaScript 286 SLoC // 0.4% comments Automake 168 SLoC // 0.0% comments Python 109 SLoC // 0.1% comments Metal Shading Language 100 SLoC RPM Specfile 94 SLoC Batch 90 SLoC HICAD 36 SLoC Prolog 15 SLoC Xcode Config 8 SLoC // 0.6% comments Snakemake 2 SLoC // 0.9% comments

Contains (Windows DLL, 2.5MB) SDL2-2.26.5-devel/SDL2.dll, (autotools obfuscated code, 1MB) SDL2-2.26.5/configure, (obscure autoconf code, 190KB) SDL2-2.26.5/configure.ac, (autotools obfuscated code, 175KB) SDL2-2.26.5/test/configure, (static library, 185KB) SDL2-2.26.5-devel/SDL2.lib, (JAR file, 55KB) gradle-wrapper.jar and 2 more.

Docs.rs

fermium

Rust bindings to the SDL2 library.

This crate covers most of SDL2's 2.0.16 API. It can be used compatibly with any newer version of SDL2. It can also even be used with older versions of SDL2, though if you call any functions not present you'll get a link error, and if you call an older version with arguments it doesn't expect it'll generally give you a runtime error.

By default, the crate links to the system version of SDL2 (or bundled pre-built dev files on Windows MSVC). Alternately, you can have the crate build SDL2 from source and statically link to that.

Versioning

The major version of this crate is basically the bundled version of SDL2 with all the dots taken out. Each new release of the crate that bundles new SDL2 source is a major version bump. There are generally no actual breaks in the crate code itself (though sometimes small updates happen). There are usually updates and fixes in how the build script runs, or raising the MSRV of the crate.

FAQ

  • Lokathor, why does your crate have such a stupid name?
    • Well, this started as raw layer for a crate called beryllium, to replace its usage of sdl2-sys with something new. Since sdl2-sys was already taken, I needed another name, and I decided to pick another element name. Somewhat at random, I just decided to check out element 100 on wikipedia, and it was apparently discovered in the fallout of the first hydrogen bomb. I thought to myself, "well that's cool enough, I guess", and now we're here.

birth-of-fermium

Dependencies