qleany 1.6.1

Architecture generator for Rust and C++/Qt applications.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    // Warn developers when building with Slint live preview enabled; the live preview
    // runtime can emit transient ids like 0 for UI interactions which may be
    // interpreted as invalid entity ids by the application. This warning helps
    // identify that configuration during development.
    if std::env::var("SLINT_LIVE_PREVIEW").ok().as_deref() == Some("1") {
        // Cargo build scripts can emit warnings via println!("cargo:warning=...");
        println!(
            "cargo:warning=SLINT_LIVE_PREVIEW is set: live preview builds may emit transient ids (e.g., 0) that are not valid entity ids. Consider disabling live preview for normal runs."
        );
    }

    slint_build::compile("ui/app.slint").unwrap();
}