Cargo Features

[dependencies]
rust_pixel = { version = "0.5.1", default-features = false, features = ["web", "term", "sdl", "base", "console_error_panic_hook"] }
default = crossterm, log4rs, rodio

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

web
term = crossterm, log4rs, rodio
sdl = image, log4rs, rodio, sdl2

Affects rust_pixel::LOGO_FRAME, adapter::PIXEL_TEXTURE_FILES, adapter::AdapterBase.gl, adapter::AdapterBase.gl_pixel, adapter::Adapter.main_render_pass, adapter::Adapter.render_buffer_to_texture, adapter::Adapter.render_rbuf, adapter::Adapter.buffer_to_render_buffer, adapter::Adapter.gen_render_buffer, adapter::render_pixel_sprites, adapter::render_main_buffer, adapter::render_border, adapter::render_logo, adapter::sdl

base = log4rs

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.

crossterm default term?

Enables crossterm ^0.22

log4rs default base? sdl? term?
sdl2 sdl?

Enables sdl2 ^0.36.0

image sdl?

Enables image ^0.24.6

console_error_panic_hook wasm32 implicit feature

Enables console_error_panic_hook

console_error_panic_hook:

A panic hook for wasm32-unknown-unknown that logs panics to console.error

rodio not android ios wasm32 default sdl? term?

Enables rodio ^0.18.1