Skip to main content

UI_LIBRARY_DIR

Constant UI_LIBRARY_DIR 

Source
pub const UI_LIBRARY_DIR: &str = "/opt/rustwide/workdir/ui";
Expand description

Filesystem path to this crate’s ui/ directory — the entry point Slint resolves @mapping/... library_paths imports against. Pass this (wrapped in a PathBuf) to slint_build::CompilerConfiguration::with_library_paths from a consuming crate’s build.rs and you can write import { MapEmbed } from "@mapping/map.slint"; in your .slint files.