Cargo Features

[dependencies]
pixels-graphics-lib = { version = "0.20.2", default-features = false, features = ["window_prefs", "controller", "sound", "file_dialogs", "controller_xinput", "images", "serde", "mint", "scenes", "embedded", "notosans", "pixels", "softbuffer", "pixels_serde", "softbuffer_serde"] }
default = scenes, serde, sound, window_prefs

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

window_prefs default scenes softbuffer? = serde

Enables prefs of simple-game-utils

Affects pixels-graphics-lib::window_prefs, pixels-graphics-lib::System.window_prefs

controller = serde

Enables controller of simple-game-utils

Affects scenes::Scene.render, scenes::Scene.update, scenes::PrePost.pre_render, scenes::PrePost.post_render, scenes::PrePost.pre_update, scenes::PrePost.post_update, scenes::empty_pre_post

sound default

Enables sound of simple-game-utils

file_dialogs = directories
controller_xinput = serde

Enables controller_xinput of simple-game-utils

Affects scenes::Scene.render, scenes::Scene.update, scenes::PrePost.pre_render, scenes::PrePost.post_render, scenes::PrePost.pre_update, scenes::PrePost.post_update, scenes::empty_pre_post

images

Enables image_loading of buffer-graphics-lib

serde default controller? controller_xinput? pixels_serde? softbuffer_serde? window_prefs

Enables serde, serde of buffer-graphics-lib, serde of simple-game-utils

mint

Enables mint of buffer-graphics-lib

scenes default = window_prefs

Affects pixels-graphics-lib::scenes

embedded

Enables embedded of buffer-graphics-lib

notosans

Enables notosans of buffer-graphics-lib

pixels pixels_serde? = winit_29, winit_input_helper

Enables pixels

Affects integration::pixels_winit, text_field::set_mouse_cursor

softbuffer softbuffer_serde? = window_prefs, winit_30

Enables softbuffer

Affects integration::softbuffer_winit, pixels-graphics-lib::Options.control_flow, text_field::set_mouse_cursor

pixels_serde = pixels, serde

Enables serde of winit ^0.29

softbuffer_serde = serde, softbuffer

Enables serde of winit

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.

winit_29 pixels? pixels_serde?

Enables winit ^0.29

winit_30 softbuffer? softbuffer_serde?

Enables winit

winit_input_helper pixels?
directories file_dialogs?

Affects dialogs::load_file_dialog, dialogs::save_file_dialog