Cargo Features

[dependencies]
polyhorn-ui = { version = "0.4.0", default-features = false, features = ["macros", "layout-yoga", "layout-stretch"] }
default = layout-yoga

The layout-yoga feature is set by default whenever polyhorn-ui is added without default-features = false somewhere in the dependency tree.

macros = usvg

Affects polyhorn-ui::macros

layout-yoga default = yoga

Affects algorithm::yoga

layout-stretch = stretch

Affects algorithm::stretch

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.

stretch layout-stretch?
yoga layout-yoga

Enables polyhorn-yoga

usvg macros?

Enables usvg ^0.11.0