Cargo Features

[dependencies]
azul-dll = { version = "0.0.5", default-features = false, features = ["minimal", "std", "logging", "use_fern_logger", "use_pyo3_logger", "css_parser", "all_img_formats", "desktop", "gif", "jpeg", "png", "tiff", "bmp", "ico", "tga", "hdr", "webp", "pnm", "svg", "xml", "text_layout", "cdylib", "rlib", "staticlib", "link-static", "link-dynamic", "desktop-cdylib", "desktop-staticlib", "rust-static", "python-extension", "fern"] }
default = all_img_formats, css_parser, desktop, font_loading, link-static, logging, std, svg, text_layout, xml

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

minimal = css_parser, font_loading, std, text_layout

these are the features that currently HAVE to be present removing any of these features will lead to compile error this will be fixed in the future

std default desktop minimal?

Enables std of azul-core ^0.0.5 and azul-layout ^0.0.5

azul-core:

Standard library support (includes CSS parser)

logging default use_fern_logger? use_pyo3_logger? = log
use_fern_logger desktop-cdylib? desktop-staticlib? rust-static? = logging
use_pyo3_logger python-extension? = logging, pyo3-log
css_parser default minimal?

Affects css::css_parser, desktop::css

all_img_formats default = bmp, gif, hdr, ico, jpeg, png, pnm, tga, tiff, webp
desktop default desktop-cdylib? desktop-staticlib? python-extension? rust-static? = azul-css, azul-layout, backtrace, bitflags, block2, clipboard2, dispatch2, font_loading, gl-context-loader, libm, once_cell, raw-window-handle, rust-fontconfig, std, strfmt, text_layout, tfd, webrender
gif all_img_formats = azul-layout

Enables gif of azul-layout ^0.0.5

azul-layout:

Individual image format features (require image_decoding)

jpeg all_img_formats = azul-layout

Enables jpeg of azul-layout ^0.0.5

png all_img_formats = azul-layout

Enables png of azul-layout ^0.0.5

tiff all_img_formats = azul-layout

Enables tiff of azul-layout ^0.0.5

bmp all_img_formats = azul-layout

Enables bmp of azul-layout ^0.0.5

ico all_img_formats = azul-layout

Enables ico of azul-layout ^0.0.5

tga all_img_formats = azul-layout

Enables tga of azul-layout ^0.0.5

hdr all_img_formats = azul-layout

Enables hdr of azul-layout ^0.0.5

webp all_img_formats = azul-layout

Enables webp of azul-layout ^0.0.5

pnm all_img_formats = azul-layout

Enables pnm of azul-layout ^0.0.5

svg default = azul-layout

Enables azul-layout ^0.0.5

azul-layout:

SVG rendering support (lyon, usvg can convert text to outlines)

xml default = azul-layout

Enables azul-layout ^0.0.5

azul-layout:

XML parsing support (for SVG and font configs)

Affects extra::styled_dom_from_file, extra::styled_dom_from_str

font_loading text_layout default desktop minimal? = azul-layout

Enables azul-layout ^0.0.5

azul-layout:

System font discovery (rust-fontconfig minimal, no parsing)

cdylib desktop-cdylib? link-dynamic? python-extension?
rlib link-static rust-static?
staticlib desktop-staticlib? link-dynamic?
desktop-cdylib = cdylib, desktop, use_fern_logger

Predefined target configurations

desktop-staticlib = desktop, staticlib, use_fern_logger
rust-static = desktop, rlib, use_fern_logger
python-extension = cdylib, desktop, pyo3, use_pyo3_logger

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.

azul-css desktop

Enables azul-css ^0.0.5

azul-layout bmp? desktop font_loading gif? hdr? ico? jpeg? png? pnm? std svg text_layout tga? tiff? webp? xml

Enables azul-layout ^0.0.5

pyo3 python-extension?

Enables pyo3 ^0.16.5

log logging
pyo3-log use_pyo3_logger?

Enables pyo3-log ^0.6.0

tfd desktop
clipboard2 desktop
raw-window-handle desktop

Enables raw-window-handle ^0.5.0

fern implicit feature

Enables fern ^0.6.1

fern:

Simple, efficient logging

backtrace desktop
rust-fontconfig desktop

Enables rust-fontconfig ^1.0.0

strfmt desktop

Enables strfmt ^0.1.6

libm desktop
gl-context-loader desktop
webrender desktop

Enables azul-webrender

once_cell desktop
dispatch2 desktop

Enables dispatch2 ^0.2.0

bitflags desktop
block2 desktop