Cargo Features

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

[dependencies]
i-slint-compiler = { version = "1.9.1", features = ["cpp", "rust", "proc_macro_span", "display-diagnostics", "software-renderer", "embed-glyphs-as-sdf", "bundle-translations"] }
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 rayon and resvg, shared-fontdb of i-slint-common

Affects embedded_resources::Texture, embedded_resources::BitmapGlyph, embedded_resources::BitmapGlyphs, embedded_resources::CharacterMapEntry, embedded_resources::BitmapFont, i-slint-compiler::FontCache, i-slint-compiler::CompilerConfiguration.font_cache

embed-glyphs-as-sdf

Enables fdsm, image, nalgebra, rayon, and ttf-parser ^0.24.1

bundle-translations

Translation bundler

Enables polib

translations

Affects i-slint-compiler::CompilerConfiguration.translation_path_bundle, item_tree::CompilationUnit.translations, lower_to_item_tree::LoweringState.translation_builder, llr::translations

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