Rust Slint GUI template project(Rust Slint GUI 模板项目)
Last updated Jun 26, 2026
94
Stars
11
Forks
0
Issues
0
Stars/day
Attention Score
45
Language breakdown
No language data available.
▸ Files
click to expand
README
Introduction
It's a Rust template project for Slint GUI. It cantains frequently-used components, setting panel, configure, simple database feature and other somall feature. This project can be compiled to Desktop (Windows, Linix, Macos), Android and Web platform.How to initialize a new project?
Enter thescript directory and run ./init-project.sh <new-project-name> to initialize a new project.
How to build?
- Install
Rust,Cargo,cargo-apkandwasm-pack - Install Android
sdk,ndk,jdk17, and set environment variables. - Example:
export JAVAHOME=$LIBRARYPATH/openjdk
export ANDROID_HOME=$HOME/Android/Sdk
export ANDROID_NDK=$HOME/Android/Sdk/ndk/27.0.12077973
export ANDROIDNDKROOT=$HOME/Android/Sdk/ndk/27.0.12077973
- Run
make android-build-releaseto build a release version android APK - Run
make desktop-debugto run it on desktop platform - Run
make desktop-build-releaseto build a release version desktop application - Run
make web-build-distto build a release version website. And the output directory isweb/dist - Run
make web-server-distto run a website server - Refer to Makefile for more information
Android platform build information
min-sdk-version = 23target-sdk-version = 32
Troubleshooting
- Using the
Qt backendcan resolve the issue of fuzzy fonts on the Windows platform. It is also recommended to prioritize theQt backendto maintain a consistent build environment with the developers.
- Check program output log information:
RUST_LOG=debug wayshot。Available log level:debug,info,warn,error
Reference
- Slint Language Documentation
- slint::android
- Running In A Browser Using WebAssembly
- github/slint-ui
- Viewer for Slint
- LSP (Language Server Protocol) Server for Slint
- developer.android.com
- How to Deploy Rust Binaries with GitHub Actions
Star History
🔗 More in this category