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:
[]
= "1.2.0"
And in your main.rs
:
!
slint
The slint
crate documentation
contains more advanced examples and alternative ways to use this crate.
To quickly get started, you can use the Template Repository with the code of a minimal application using Slint that can be used as a starting point to your program.
More examples
You can quickly try out the examples by cloning this repo and running them with cargo run
# Runs the "printerdemo" example
Minimum Supported Rust Version
This crate's minimum supported rustc
version is 1.66.