Cargo Features

[dependencies]
zng-webrender = { version = "0.62.2", default-features = false, features = ["profiler", "capture", "replay", "display_list_stats", "serialize_program", "dynamic_freetype", "static_freetype", "leak_checks", "sw_compositor", "png"] }
default = static_freetype

The static_freetype feature is set by default whenever zng-webrender is added without default-features = false somewhere in the dependency tree.

profiler

Enables enable_profiler of tracy-rs

capture

Enables ron and serde, serialize of zng-webrender-api, serialization of etagere, capture of zng-wr-glyph-rasterizer, serde of smallvec

Affects render_task_graph::dump_render_tasks_as_svg, resource_cache::PlainCacheRef, resource_cache::PlainResources

replay

Enables ron and serde, deserialize of zng-webrender-api, serialization of etagere, replay of zng-wr-glyph-rasterizer, serde of smallvec

Affects resource_cache::PlainCacheOwn, scene_builder_thread::LoadScene, resource_cache::PlainResources

display_list_stats

Enables display_list_stats of zng-webrender-api

serialize_program

Enables serde, serialize_program of zng-webrender-build

dynamic_freetype

Enables dynamic_freetype of zng-wr-glyph-rasterizer

static_freetype default

Enables static_freetype of zng-wr-glyph-rasterizer

leak_checks
sw_compositor

Enables zng-swgl

Affects compositor::sw_compositor

Features from optional dependencies

png implicit feature

Enables png ^0.16

png:

PNG decoding and encoding library in pure Rust