2020-08-25 00:06:08 +00:00
# Cargo Features
## Default Features
2021-02-01 04:19:10 +00:00
|feature name|description|
|-|-|
|bevy_audio|Audio support. Support for all audio formats depends on this.|
2021-07-06 21:15:50 +00:00
|bevy_dynamic_plugin|Plugin for dynamic loading (libloading).|
2021-02-01 04:19:10 +00:00
|bevy_gilrs|Adds gamepad support.|
|bevy_gltf|[glTF](https://www.khronos.org/gltf/) support.|
|bevy_winit|GUI support.|
|bevy_wgpu|Make use of GPU via [WebGPU ](https://gpuweb.github.io/gpuweb/ ) support.|
|render|The render pipeline and all render related plugins.|
|png|PNG picture format support.|
|hdr|[HDR](https://en.wikipedia.org/wiki/High_dynamic_range) support.|
|mp3|MP3 audio format support.|
|x11|Make GUI applications use X11 protocol. You could enable wayland feature to override this.|
2020-08-25 00:06:08 +00:00
## Optional Features
2021-02-01 04:19:10 +00:00
|feature name|description|
|-|-|
2021-04-16 18:57:08 +00:00
|dynamic|Forces bevy to be dynamically linked, which improves iterative compile times.|
2021-04-13 20:02:20 +00:00
|trace|Enables system tracing (useful in tandem with a feature like trace_chrome).|
2021-02-01 04:19:10 +00:00
|trace_chrome|Enables [tracing-chrome ](https://github.com/thoren-d/tracing-chrome ) as bevy_log output. This allows you to visualize system execution.|
|wgpu_trace|For tracing wgpu.|
2021-04-16 18:57:08 +00:00
|dds|DDS picture format support.|
|tga|TGA picture format support.|
|jpeg|JPEG picture format support.|
|bmp|BMP picture format support.|
2021-02-01 04:19:10 +00:00
|flac|FLAC audio format support. It's included in bevy_audio feature.|
|wav|WAV audio format support.|
|vorbis|Vorbis audio format support.|
2021-07-14 03:20:21 +00:00
|wasm_audio|WASM audio support. (Currently only works with flac, wav and vorbis. Not with mp3)|
2021-04-16 18:57:08 +00:00
|serialize|Enables serialization of `bevy_input` types.|
2021-02-01 04:19:10 +00:00
|wayland|Enable this to use Wayland display server protocol other than X11.|
|subpixel_glyph_atlas|Enable this to cache glyphs using subpixel accuracy. This increases texture memory usage as each position requires a separate sprite in the glyph atlas, but provide more accurate character spacing.|
2021-04-16 18:57:08 +00:00
|bevy_ci_testing|Used for running examples in CI.|