Cargo Features

[dependencies]
pixel_loop = { version = "0.1.0", default-features = false, features = ["crossterm", "winit", "image-load"] }
default = crossterm, image-load, winit

For now everything is enabled by default. We might change this in future versions, once the API becomes more stable.

crossterm default

Enable console rendering capabilities via the "CrosstermCanvas"

Enables crossterm

Affects canvas::crossterm, input::crossterm

winit default

Enable Window handling and rendering capabilities, via winit and pixels

Enables pixels ^0.13.0, winit ^0.28.0, and winit_input_helper ^0.14.0

Affects canvas::pixels, pixel_loop::winit

image-load default

Allow loading of images via stb-image and InMemoryCanvas

Enables stb_image

Affects canvas::in_memory