46 releases (stable)
Uses new Rust 2024
| new 1.15.1 | Feb 12, 2026 |
|---|---|
| 1.14.1 | Oct 23, 2025 |
| 1.12.1 | Jun 25, 2025 |
| 1.10.0 | Feb 28, 2025 |
| 0.2.1 | Mar 10, 2022 |
#16 in GUI
33,619 downloads per month
Used in 57 crates
(51 directly)
2.5MB
42K
SLoC
Slint
A Rust UI toolkit
Slint is a Rust based UI toolkit to build native user interfaces on desktop platforms and for embedded devices. This crate provides the Rust APIs to interact with the user interface implemented in Slint.
The complete Rust documentation for Slint can be viewed online at https://slint.rs/docs/rust/slint/.
Getting Started
The crate documentation shows how to use this crate.
Hello World
The most basic "Hello world" application can be achieved with a few lines of code:
In your Cargo.toml add:
[dependencies]
slint = "1.15"
And in your main.rs:
slint::slint!{
export component HelloWorld {
Text {
text: "hello world";
color: green;
}
}
}
fn main() {
HelloWorld::new().unwrap().run().unwrap();
}
The slint crate documentation
contains more advanced examples and alternative ways to use this crate.
To quickly get started, use the Template Repository with the code of a minimal application using Slint as a starting point for your program.
- Download and extract the ZIP archive of the Rust Template.
- Rename the extracted directory and change into it:
mv slint-rust-template-main my-project
cd my-project
More examples
You can quickly try out the examples by cloning this repo and running them with cargo run
# Runs the "printerdemo" example
cargo run --release --bin printerdemo
Dependencies
~13–68MB
~1M SLoC