Cargo Features

SDL3 has no features set by default.

[dependencies]
sdl3 = { version = "0.5.0", features = ["unsafe_textures", "gfx", "mixer", "image", "ttf", "hidapi", "test-mode", "use-bindgen", "use-pkgconfig", "use-vcpkg", "use_mac_framework", "bundled", "static-link", "raw-window-handle"] }
unsafe_textures

Affects render::Texture

gfx = c_vec

Enables gfx of sdl3-sys ^0.0.6

Affects sdl3::gfx

mixer

Enables mixer of sdl3-sys ^0.0.6

Affects sdl3::mixer

image

Enables image of sdl3-sys ^0.0.6

Affects sdl3::image

ttf

Enables ttf of sdl3-sys ^0.0.6

Affects sdl3::ttf

hidapi

Use hidapi support in SDL. Only 2.0.12 and after

Affects sdl3::sensor

test-mode

test_mode allows SDL to be initialised from a thread that is not the main thread

use-bindgen

Enables use-bindgen of sdl3-sys ^0.0.6

use-pkgconfig

Enables use-pkgconfig of sdl3-sys ^0.0.6

use-vcpkg

Enables use-vcpkg of sdl3-sys ^0.0.6

use_mac_framework

Enables use_mac_framework of sdl3-sys ^0.0.6

bundled

Enables bundled of sdl3-sys ^0.0.6

Enables static-link of sdl3-sys ^0.0.6

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.

raw-window-handle implicit feature

Enables raw-window-handle ^0.5.0

raw-window-handle:

Interoperability library for Rust Windowing applications

Affects sdl3::raw_window_handle

c_vec gfx?