Cargo Features

sdl2-sys has no features set by default.

[dependencies]
sdl2-sys = { version = "0.36.0", features = ["use-pkgconfig", "use-vcpkg", "use-bindgen", "use_mac_framework", "bundled", "mixer", "image", "ttf", "gfx", "flate2"] }
use-pkgconfig = pkg-config
use-vcpkg = vcpkg
use-bindgen = bindgen
static-link use_mac_framework
bundled = cmake
mixer

Affects sdl2-sys::mixer

image

Affects sdl2-sys::image

ttf

Affects sdl2-sys::ttf

gfx

Affects sdl2-sys::gfx

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

flate2 build implicit feature
bindgen build use-bindgen?

Enables bindgen ^0.53

cmake build bundled?
pkg-config build use-pkgconfig?
vcpkg build use-vcpkg?