Cargo Features

i-slint-compiler has no features set by default.

[dependencies]
i-slint-compiler = { version = "1.5.1", features = ["cpp", "rust", "proc_macro_span", "display-diagnostics", "software-renderer"] }
cpp

Generators

Affects generator::cpp

rust = proc-macro2, quote

Affects generator::rust

proc_macro_span = proc-macro2, quote

Support for proc_macro spans in the token (only useful for use within a proc macro)

Affects diagnostics::Span.span, parser::Token.span

display-diagnostics = codemap, codemap-diagnostic

Feature to print the diagnostics to the console

software-renderer = fontdue, image

Enabled the support to render images and font in the binary

Enables resvg ^0.40.0, shared-fontdb of i-slint-common

Affects embedded_resources::Texture, embedded_resources::BitmapGlyph, embedded_resources::BitmapGlyphs, embedded_resources::CharacterMapEntry, embedded_resources::BitmapFont

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.

codemap-diagnostic display-diagnostics?
codemap display-diagnostics?
quote proc_macro_span? rust?
proc-macro2 proc_macro_span? rust?
image software-renderer?

Enables image ^0.24

for processing and embedding the rendered image (texture)

fontdue software-renderer?

Enables fontdue

font embedding