Cargo Features

egui_kittest has no features set by default.

[dependencies]
egui_kittest = { version = "0.31.0", features = ["wgpu", "snapshot", "eframe", "document-features"] }
wgpu

Adds a wgpu-based test renderer.

Enables wgpu of optional eframe and wgpu

Enable DX12 because it always comes with a software rasterizer.

and egui-wgpu, image, and pollster

egui-wgpu:

wgpu dependencies

Affects egui_kittest::wgpu, renderer::TestRenderer.render

snapshot

Adds a dify-based image snapshot utility.

Enables png of image and dify

snapshot dependencies

Affects renderer::TestRenderer.render

eframe

Allows testing eframe::App

Enables accesskit of eframe

Affects renderer::TestRenderer.setup_eframe

Features from optional dependencies

document-features implicit feature

Enables document-features

Enable this when generating docs.