Cargo Features
azul-widgets has no features set by default.
[dependencies]
azul-widgets = { version = "0.0.2", features = ["svg", "svg_parsing", "fonts", "serde_serialization"] }
- svg svg_parsing? = gleam, lyon
-
The SVG rendering module is pretty huge since it needs lyon - if you don't use SVG rendering in your app, you can turn this off to increase compilation speed and decrease your binary size
Affects
azul-widgets::svg
… - svg_parsing = fonts, svg, usvg
-
This is for activating parsing of SVG files. If you, for example, just want to draw shapes on the screen, you do not need to activate this feature, this is just for parsing the SVG from a file.
Affects
svg::SvgParseError
… - fonts svg_parsing? = stb_truetype
-
Necessary for getting the glyphs out of a TTF font (until harfbuzz / etc. would implement something like this)
- serde_serialization = serde, serde_derive
-
For serializing / deserializing CSS colors using serde
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.
- gleam svg?
-
Enables gleam ^0.11.0
- lyon svg?
-
Enables lyon ^0.15.5
- usvg svg_parsing?
-
Enables usvg ^0.9.0
- serde_derive serde_serialization?
- serde serde_serialization?
- stb_truetype fonts?