Cargo Features
[dependencies]
rust_pixel = { version = "0.5.9", default-features = false, features = ["web", "term", "sdl", "base", "console_error_panic_hook"] }
- default = crossterm, image, log4rs, rodio
-
These default features are set whenever
rust_pixel
is added without
somewhere in the dependency tree.default-features = false - web
- term = crossterm, image, log4rs, rodio
- sdl = image, log4rs, rodio, sdl2
-
Affects
rust_pixel::LOGO_FRAME
,adapter::PIXEL_TEXTURE_FILE
,adapter::AdapterBase.gl
,adapter::AdapterBase.gl_pixel
,adapter::Adapter.draw_all_graph
,adapter::Adapter.draw_render_textures_to_screen
,adapter::Adapter.draw_buffer_to_texture
,adapter::Adapter.draw_render_buffer_to_texture
,adapter::Adapter.buffer_to_render_buffer
,adapter::Adapter.draw_all_to_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 default sdl? term?
-
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 toconsole.error
- rodio not android ios wasm32 default sdl? term?
-
Enables rodio ^0.18.1