Cargo Features

[dependencies]
webrender = { version = "0.61.0", default-features = false, features = ["freetype-lib", "profiler", "debugger", "capture", "replay", "display_list_stats", "serialize_program", "leak_checks", "png"] }
default = freetype-lib

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

freetype-lib default

Enables servo-freetype-sys of freetype ^0.4

profiler

Enables thread_profiler of thread_profiler ^0.1.1

thread_profiler:

Required for testing using the profile_scope!() macro

debugger = base64, image_loader, serde, serde_json, ws
capture = ron, serde

Enables serialize of webrender_api, serde of smallvec ^0.6

Affects resource_cache::PlainCacheRef, resource_cache::PlainResources

replay = ron, serde

Enables deserialize of webrender_api, serde of smallvec ^0.6

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

display_list_stats

Enables display_list_stats of webrender_api

serialize_program = serde

Enables serialize_program of webrender_build

no_static_freetype leak_checks

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.

base64 debugger?

Enables base64 ^0.10

image_loader debugger?

Enables image ^0.22

png implicit feature

Enables png ^0.15

png:

PNG decoding and encoding library in pure Rust

ron capture? replay?

Enables ron ^0.1.7

serde capture? debugger? replay? serialize_program?
serde_json debugger?
ws debugger?