https://github.com/stenbror/gui_slint_test
A very simple test program in Rust with slint GUI
https://github.com/stenbror/gui_slint_test
Last synced: 5 months ago
JSON representation
A very simple test program in Rust with slint GUI
- Host: GitHub
- URL: https://github.com/stenbror/gui_slint_test
- Owner: stenbror
- License: mit
- Created: 2024-06-01T14:20:34.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-01T14:34:32.000Z (about 2 years ago)
- Last Synced: 2025-06-13T13:09:25.788Z (about 1 year ago)
- Language: Slint
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A simple GUI application example in Rust using slint
A Rust example application that's using [Slint](https://slint.rs) for the user interface.
## About
Just me experimenting with slint GUI from Rust.
## To build and run this sample program
1. Build with cargo
```
cargo build
```
2. Run the application binary
```
cargo run
```
## Usage if you want to use template to build your own programs.
1. Install Rust by following the [Rust Getting Started Guide](https://www.rust-lang.org/learn/get-started).
Once this is done, you should have the ```rustc``` compiler and the ```cargo``` build system installed in your path.
2. Install [`cargo-generate`](https://github.com/cargo-generate/cargo-generate)
```
cargo install cargo-generate
```
3. Set up a sample project with this template
```
cargo generate --git https://github.com/slint-ui/slint-rust-template --name my-project
cd my-project
```
3. Build with cargo
```
cargo build
```
4. Run the application binary
```
cargo run
```
We recommend using an IDE for development, along with our [LSP-based IDE integration for `.slint` files](https://github.com/slint-ui/slint/blob/master/tools/lsp/README.md). You can also load this project directly in [Visual Studio Code](https://code.visualstudio.com) and install our [Slint extension](https://marketplace.visualstudio.com/items?itemName=Slint.slint).
## 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](https://slint.dev/docs).