This is always no_std.
To define the C types involved, the bindings use winapi on Windows and libc
elsewhere.
clang (3.9 or later). Their page has instructions
for installing clang, based on your system.
LIBCLANG_PATH pointing to the install directory that has libclang.dll
(eg: D:\programs\LLVM\bin)2.0.9 or later). There's a Mac
installer file on the SDL2 download
page if you like. It's also fairly
trivial to build from source in the normal style for a C project:sh
curl -L https://www.libsdl.org/release/SDL2-2.0.9.tar.gz | tar xz
cd SDL2-2.0.9
./configure
make
sudo make install
SDL2.dll along side your
program.exe file. The dynamic library lookup starts in the same folder the
exe lives in, so you shipping a copy of SDL2.dll won't get mixed up with any
other SDL2.dll they have installed from anywhere else. If a user needs to
override your version they can just replace the file, but they probably
won't even need to.In the future the crate will likely have a feature to enable a static link with SDL2 (necessary on some platforms), but you should avoid a static link if possible. Using a dynamic link lets users get a newer versions of SDL2 with bug fixes and patches and it'll "Just Work" with the copy of your program they already have.