Skip to content

A template for a Rust Application using Slint. This is meant to be used with cargo-generate.

License

Notifications You must be signed in to change notification settings

showier-drastic/slint-rust-bug-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Install Rust by following the Rust Getting Started Guide. Once this is done, you should have the rustc compiler and the cargo build system installed in your path.
  2. Install 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
    
  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. 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.

Don't forget to edit this README to replace it by yours

About

A template for a Rust Application using Slint. This is meant to be used with cargo-generate.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Slint 75.8%
  • Rust 24.2%