Cargo Features
i-slint-compiler has no features set by default.
[dependencies]
i-slint-compiler = { version = "1.14.1", features = ["cpp", "rust", "proc_macro_span", "display-diagnostics", "software-renderer", "sdf-fonts", "bundle-translations", "experimental-library-module"] }
- cpp
-
Generators
Affects
generator::cpp,generator::cpp_live_preview… - rust = proc-macro2, quote
-
Affects
generator::rust,generator::rust_live_preview… - 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
-
Enable the support to render images and font in the binary
Enables rayon and resvg, shared-fontique 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,i-slint-compiler::CompilerConfiguration.use_sdf_fonts… - sdf-fonts
-
Enable support to embed the fonts as signed distance fields
Enables fdsm, fdsm-ttf-parser, nalgebra, and rayon
Affects
i-slint-compiler::CompilerConfiguration.use_sdf_fonts… - bundle-translations
-
Translation bundler
Enables polib
translations
Affects
i-slint-compiler::translations,i-slint-compiler::CompilerConfiguration.translation_path_bundle,item_tree::CompilationUnit.translations,lower_to_item_tree::LoweringState.translation_builder,object_tree::Document.translation_builder… - experimental-library-module
-
Enable expermental library module support
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
for processing and embedding the rendered image (texture)
- fontdue software-renderer?
-
Enables fontdue
font embedding