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
somewhere in the dependency tree.default-features = false - zip-compression c_dependencies
- mp3 c_dependencies
-
Enables mp3 of rodio ^0.17
- 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?
-
Enables rodio ^0.17
- gilrs gamepad
-
Enables gilrs ^0.10