A template for a Rust Application using Slint with material components.
This template helps you get started developing a Rust application with Slint as a toolkit for the user interface and the material component set.
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.
- 
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. mv material-rust-template-master my-project cd my-project
- 
Build with cargo:cargo build
- 
Run the application binary: cargo run
You can then use wasm-pack (which you may need to obtain with cargo install wasm-pack).
This will generate the wasm in the ./pkg directory, which the index.html file will open.
Since wasm files cannot be served from file:// URL, you need to open a wab server to serve
the content
wasm-pack build --release --target web
python3 -m http.serverFirst, set up your Android environment. Then, you can run the demo on an Android device with the following command:
cargo apk run --target aarch64-linux-android --libWe 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. Check out
also the material components documentation
Don't forget to replace the contents of this readme with your own project details.
(Containing a screenshot of your application if you want to.)
As well as edit the name = field in Cargo.toml to match the name of your project.