Thanks to visit codestin.com
Credit goes to lib.rs

Cargo Features

[dependencies]
rgpui = { version = "0.2.1", default-features = false, features = ["inspector", "leak-detection", "reqwest", "tls", "wayland", "x11", "screen-capture", "windows-manifest", "input-latency-histogram", "test-support", "objc2", "objc2-metal", "font-kit"] }
default = font-kit, wayland, windows-manifest, x11

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

inspector

Enables inspector of rgpui-macros

Affects div::DivInspectorState.base_style, inspector::InspectorElementId.path, inspector::InspectorElementId.instance_id, inspector::inspector_reflection

leak-detection test-support?
reqwest

Enables reqwest and tokio

Affects http_client::reqwest_client

tls

Enables rustls and rustls-platform-verifier

Affects http_client::tls

wayland default test-support? = bitflags

Affects platform::layer_shell

x11 default test-support?

Enables x11 of optional zed-scap

screen-capture = scap
windows-manifest build default

Enables embed-resource

input-latency-histogram

Enables hdrhistogram

Affects window::InputLatencySnapshot

test-support = leak-detection, proptest, wayland, x11

Enables git2 ^0.20.4

Affects http_client::HttpClient.as_fake, http_client::FakeHttpClient

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.

bitflags wayland
objc2 mac implicit feature

Enables objc2

objc2:

Objective-C interface and runtime bindings

objc2-metal mac implicit feature

Enables objc2-metal

objc2-metal:

Bindings to the Metal framework

font-kit mac default

Enables zed-font-kit

scap linux freebsd win screen-capture?

Enables zed-scap

proptest test-support?