Desktop Apps with Rust and Tauri
Desktop Apps with Rust and Tauri
Overview
This Rust training course teaches attendees how to build desktop applications using Rust and
Tauri to create UI elements such as windows, menus, and tray icons. Participants learn how
to create dialogs, notifications, file system dialogs, and more.
Note: This course can be taught with Leptos, React, Angular, Svelte, or Solid.js.
Prerequisites
This course assumes prior experience with Rust, JavaScript, HTML, and CSS.
Materials
All Rust training students receive comprehensive courseware covering all topics in the
course. Courseware is distributed via GitHub through documentation and extensive code
samples.
Students will need a free, personal GitHub account to access the courseware. Students need
permission to install Rust and Visual Studio Code on their computers. Also, students will need
permission to install Rust Crates and Visual Studio Extensions. Students will need a local
instance of Postgresql or SQL Server installed on their computer (using Docker is
acceptable). If students cannot configure a local development environment on their
machines, a cloud-based environment can be provided.
Objectives
Outline
Introduction
Desktop Apps with Tauri
o What is Tauri?
o How does it compare to Electron, Qt, and WinForms?
Copyright ©2003-2024 Accelebrate, LLC. Some outlines may contain content from our courseware partners; such
content is protected by these partners' copyrights. All trademarks are owned by their respective owners.
Getting Started
o Create a Tauri Project
o Integrate with JavaScript or Rust-based browser UI framework
o Run and Debug Tauri Applications
Call Backend Rust Code from the Front-End
o Define Rust Backend Functions
o Call Rust Backend Functions
o Pass Arguments to Rust Backend Functions
o Return Data from Rust Backend Functions
o Handle Errors from Rust Backend Functions
o Asynchronous Rust Backend Functions
Interact with App Parts from the Rust Backend
o Window
o AppHandle
o Managed State
o Multiple Commands
UI Elements
o Window
o Menu
o Tray Icon
o Splash Screen
o Dialog
o Notification
Interacting with the Operating System
o Create a File System Dialog
o Create a File System Watcher
Database Programming
o What is a Database?
o Connect to Postgresql
o Query data from the database
o Modify data in the database
o Connect Tauri to a Database
Deployment
o Create Platform Specific Installers
o Cross-Platform Compilation with CI/CD
o Signing the Application
Conclusion
Copyright ©2003-2024 Accelebrate, LLC. Some outlines may contain content from our courseware partners; such
content is protected by these partners' copyrights. All trademarks are owned by their respective owners.