Cargo Features

[dependencies]
libremarkable = { version = "0.6.2", default-features = false, features = ["scan", "framebuffer-types", "framebuffer", "framebuffer-storage", "framebuffer-drawing", "framebuffer-text-drawing", "input-types", "input", "battery", "appctx", "enable-runtime-benchmarking", "hlua"] }
default = appctx, battery, framebuffer, framebuffer-drawing, framebuffer-storage, framebuffer-text-drawing, framebuffer-types, hlua, image, input, input-types, scan

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

scan default framebuffer input = evdev

Affects input::scan

framebuffer-types default framebuffer = ioctl-gen

Affects libremarkable::framebuffer

framebuffer default framebuffer-drawing framebuffer-storage = framebuffer-types, memmap2, scan

Affects framebuffer::io, framebuffer::swtfb_client, framebuffer::core, framebuffer::refresh

framebuffer-storage default = framebuffer, zstd

Affects framebuffer::storage

framebuffer-drawing default framebuffer-text-drawing = framebuffer, line_drawing

Affects framebuffer::draw, framebuffer::FramebufferDraw

framebuffer-text-drawing default appctx = framebuffer-drawing, rusttype

Affects draw::DEFAULT_FONT, framebuffer::FramebufferDraw.draw_text

input-types default input

Affects libremarkable::input

input default appctx = epoll, evdev, fxhash, input-types, scan

Affects dimensions::MTWIDTH, dimensions::MTHEIGHT, dimensions::WACOMWIDTH, dimensions::WACOMHEIGHT, input::ev, input::wacom, input::gpio, input::multitouch, input::InputDeviceState

battery default

Affects libremarkable::battery

appctx default = aabb-quadtree, framebuffer-text-drawing, image, input

Affects libremarkable::appctx, libremarkable::ui_extensions

enable-runtime-benchmarking = stopwatch

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.

memmap2 framebuffer

Enables memmap2 ^0.5.2

framebuffer

ioctl-gen framebuffer-types
zstd framebuffer-storage

Enables zstd ^0.9.0

rusttype framebuffer-text-drawing

Enables rusttype

framebuffer-drawing

image default appctx

Enables image ^0.23.14

Affects framebuffer::FramebufferDraw.draw_image, storage::rgbimage_from_u8_slice

line_drawing framebuffer-drawing
evdev input scan

Enables evdev

input

epoll input
fxhash input
aabb-quadtree appctx

Enables aabb-quadtree ^0.1.0

appctx

hlua default

Affects ui_extensions::luaext

stopwatch enable-runtime-benchmarking?

Enables stopwatch

runtime benchmarking