Slint Rust Template
A template for a Rust application that's using Slint for the user interface.
About
This template helps you get started developing a Rust application with Slint as toolkit
for the user interface. It demonstrates the integration between the .slint
UI markup and
Rust code, how to trigger react to callbacks, get and set properties and use basic widgets.
Usage
-
Install Rust by following the Rust Getting Started Guide. Once this is done, you should have the compiler and the build system installed in your path.
-
Install
cargo-generate
-
Set up a sample project with this template
-
Build with cargo
-
Run the application binary
We recommend using an IDE for development, along with our LSP-based IDE integration for .slint
files. You can also load this project directly in Visual Studio Code and install our Slint extension.
Next Steps
We hope that this template helps you get started and you enjoy exploring making user interfaces with Slint. To learn more
about the Slint APIs and the .slint
markup language check out our online documentation.