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 wheneverpolyhorn-ui
is added without
somewhere in the dependency tree.default-features = false - 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