Cargo Features

[dependencies]
pixel_loop = { version = "0.3.0", default-features = false, features = ["crossterm", "pixels", "stb-image"] }
default = crossterm, pixels, stb-image

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

pixels 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, input::pixels

stb-image default

Allow loading of images via stb-image and InMemoryCanvas

Enables stb_image