Cargo Features

[dependencies]
bracket-terminal = { version = "0.8.7", default-features = false, features = ["low_cpu", "opengl", "curses", "cross_term", "webgpu"] }
default = opengl

The opengl feature is set by default whenever bracket-terminal is added without default-features = false somewhere in the dependency tree.

low_cpu = spin_sleep
opengl default = glow, glutin, image
curses = ctrlc, pancurses
cross_term = crossterm, ctrlc
webgpu = bytemuck, image, png, pollster, wgpu

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

glow opengl

Enables glow ~0.11

image opengl webgpu?

With jpeg and png

png webgpu?
crossterm cross_term?

Enables default (bracketed-paste) of crossterm ~0.25

pancurses curses?
ctrlc cross_term? curses?

Enables ctrlc ~3.2

wgpu webgpu?

Enables wgpu ^0.13

pollster webgpu?

Enables pollster ^0.2

bytemuck webgpu?
glutin cfg(not(any(target_arch = "wasm32"))) opengl

Enables default features of glutin ~0.29

spin_sleep cfg(not(any(target_arch = "wasm32"))) low_cpu?