A template for a Rust application that's using Slint for the user interface.
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 react to callbacks, get and set properties, and use basic widgets.
- Install Rust by following its getting-started guide.
Once this is done, you should have the
rustccompiler and thecargobuild system installed in yourPATH. - Download and extract the ZIP archive of this repository.
- Rename the extracted directory and change into it:
mv slint-rust-template-main my-project cd my-project - Build with
cargo:cargo build - Run the application binary:
cargo run
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.
We hope that this template helps you get started, and that 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.
Don't forget to edit this readme to replace it by yours, and edit the name = field in Cargo.toml to match the name of your
project.