Cargo Features

[dependencies]
sfml = { version = "0.25.1", default-features = false, features = ["window", "graphics", "audio", "serde", "ci-headless", "build-flac-ogg"] }
default = audio, build-flac-ogg, graphics

These default features are set whenever sfml is added without default-features = false somewhere in the dependency tree.

window graphics

Enables bitflags

Affects sfml::window

graphics default = window

Affects sfml::graphics

audio default

Enables libflac-sys

Affects sfml::audio

serde

Enables serde

ci-headless

Used to skip running certain tests on CI, since it's running in a headless environment.

build-flac-ogg default

When enabled, libFLAC and libogg will be built from source and statically linked Otherwise, they will be dynamically linked

Enables build-flac and build-ogg of optional libflac-sys