Cargo Features

[dependencies]
ggez = { version = "0.9.3", default-features = false, features = ["zip-compression", "mp3", "multithread-image-decoding", "c_dependencies", "audio", "gamepad"] }
default = audio, c_dependencies, gamepad

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

zip-compression c_dependencies

Enables bzip2 and zstd of zip ^0.6

mp3 c_dependencies

Enables mp3 of rodio

multithread-image-decoding

Enables hdr and jpeg_rayon of image ^0.24

c_dependencies default = mp3, zip-compression
audio default = rodio

Affects context::Context.audio

gamepad default = gilrs

Affects context::Context.gamepad, event::EventHandler.gamepad_button_down_event, event::EventHandler.gamepad_button_up_event, event::EventHandler.gamepad_axis_event

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.

rodio audio mp3?
gilrs gamepad