Cargo Features
[dependencies]
azul-desktop = { version = "0.0.5", default-features = false, features = ["logging", "widgets", "native_style", "css_parser", "svg", "svg_parsing", "svg_fonts", "image_loading", "ico", "tga", "hdr", "jpeg_rayon", "dxt", "webp", "pnm", "font_loading", "text_layout"] }
- default = css_parser, font_loading, image_loading, logging, native_style, text_layout, widgets
-
These default features are set whenever
azul-desktop
is added without
somewhere in the dependency tree.default-features = false - logging default = backtrace, fern, log
-
Enable this feature to enable crash logging & reporting.
Azul will insert custom panic handlers to pop up a message and log crashes to an "error.log" file, see AppConfig for more detailsAffects
app::AppConfig.enable_logging
,app::AppConfig.log_file_path
,app::AppConfig.enable_visual_panic_hook
,app::AppConfig.enable_logging_on_panic
… - widgets default svg? svg_fonts? svg_parsing? = azul-widgets
-
Enable / disable the built-in widgets
Affects
azul-desktop::widgets
… - native_style default = azul-native-style
-
Enable / disable the OS-native CSS style loader
Affects
css::native_style
,css::native
,css::override_native
,css::hot_reload_override_native
,azul-desktop::css
… - css_parser default = azul-css-parser
-
Enable / diable the CSS parser
Enables css_parser of azul-core
Affects
css::css_parser
,css::from_str
,css::hot_reload
,css::override_native
,css::hot_reload_override_native
,azul-desktop::css
… - svg svg_parsing? = widgets
-
Enable / disable the built-in SVG widgets (requires lyon - extra compilation time)
Enables svg of azul-widgets ^0.0.1
Affects
azul-desktop::widgets.svg
… - svg_parsing = svg, widgets
-
Enable / disable the SVG parser (requires usvg)
Enables svg_parsing of azul-widgets ^0.0.1
Affects
azul-desktop::widgets.svg
… - svg_fonts = widgets
-
Enable / disable the built-in SVG widgets (requires lyon - extra compilation time)
Enables fonts of azul-widgets ^0.0.1
- image_loading default
-
On some applications you might not want to load any images. For these purposes the image crate can be disabled, to speed up compile times
Enables azulc
- ico
-
Enables loading of ICO files on the image decoder
- tga
-
Enables loading of TGA files on the image decoder
- hdr
-
Enables loading of HDR files on the image decoder
- jpeg_rayon
-
Enables parallel JPEG decoding on the image decoder
Enables jpeg_rayon of azulc
- dxt
-
Enables loading of DXT files on the image decoder
- webp
-
Enables loading of WEBP files on the image decoder
- pnm
-
Enables loading of PNM files on the image decoder
- font_loading default
-
Activates the font-loading module, important to deactivate for example
Enables font-loader of azulc
- text_layout default
-
Text loading module, disable if you have a custom text layouting function
Enables azulc
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.