Use Cases
Addresses: ISO 26262-8 11.4.5.1
This chapter lists how each tool of Slint SC is used in a project. The potential errors and the tool classification are derived from these use cases. How the runtime is added to a project is in the Component Documentation.
Compiling a .slint File Into Rust
Section titled “Compiling a .slint File Into Rust”- ID: UC_COMPILE_SLINT_FILE
- Tool: Slint compiler
- Purpose: Generate source code for the product.
- Input: A
.slintfile - Output: Rust code that can be compiled into the final executable
- Environment Constraints: Not stated yet
The slint-compiler binary, invoked with --slint-sc, translates the .slint file into Rust code:
slint-compiler --slint-sc -o main_file.rs mainFile.slintbash
The generated code is then compiled and linked into the application together with the slint-sc runtime crate.
Measuring the Coverage of Slint Code
Section titled “Measuring the Coverage of Slint Code”- ID: UC_MEASURE_SLINT_COVERAGE
- Tool:
slint-sc-coverage - Purpose: Report which parts of the
.slintcode the tests of the application reached, as verification evidence. - Input: The
.slintcovmaps the compiler writes with--coverage, and thellvm-covexport of the instrumented test run - Output: The coverage of the
.slintcode, per coverage point - Environment Constraints: The test program runs on the host, where the LLVM profiler runtime is available
Coverage of Slint Code describes the usage procedure.
© 2026 SixtyFPS GmbH