Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fakelog/slint-empty-template
https://github.com/fakelog/slint-empty-template
rust slint-ui template
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fakelog/slint-empty-template
- Owner: fakelog
- License: mit
- Created: 2024-10-24T16:48:06.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T16:53:10.000Z (about 2 months ago)
- Last Synced: 2024-10-26T00:02:18.092Z (about 2 months ago)
- Topics: rust, slint-ui, template
- Language: Rust
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slint Rust Template
A empty template for a Rust application that's using [Slint](https://slint.rs/) 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 react to callbacks, get and set properties, and use basic widgets.## Usage
1. Install Rust by following its [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. Download and extract the [ZIP archive of this repository](https://github.com/fakelog/slint-empty-template/archive/refs/heads/main.zip).
3. Rename the extracted directory and change into it:
```
mv slint-empty-template-main my-project
cd my-project
```
4. Build with `cargo`:
```
cargo build
```
5. 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 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](https://slint.dev/docs).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.