Desktop Apps with Rust and Tauri


Course Number: RUST-106
Duration: 3 days (19.5 hours)
Format: Live, hands-on

Rust and Tauri Training 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.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Use modern approaches to desktop app development
  • Explore how to create desktop apps with Rust and a web browser
  • Create a new desktop app using Tauri and a browser-based frontend
  • Integrate popular JS frameworks or Rust WASM frameworks with Tauri
  • Create UI elements such as windows, menus, and tray icons
  • Connect a Tauri app to a database (PostgreSQL or SQL Server)
  • Connect a Tauri app to a REST API
  • Publish and distribute a Tauri app

Prerequisites

This course assumes prior experience with Rust, JavaScript, HTML, and CSS.

Outline

Expand All | Collapse All

Introduction
Desktop Apps with Tauri
  • What is Tauri?
  • How does it compare to Electron, Qt, and WinForms?
Getting Started
  • Create a Tauri Project
  • Integrate with JavaScript or Rust-based browser UI framework
  • Run and Debug Tauri Applications
Call Backend Rust Code from the Front-End
  • Define Rust Backend Functions
  • Call Rust Backend Functions
  • Pass Arguments to Rust Backend Functions
  • Return Data from Rust Backend Functions
  • Handle Errors from Rust Backend Functions
  • Asynchronous Rust Backend Functions
Interact with App Parts from the Rust Backend
  • Window
  • AppHandle
  • Managed State
  • Multiple Commands
UI Elements
  • Window
  • Menu
  • Tray Icon
  • Splash Screen
  • Dialog
  • Notification
Interacting with the Operating System
  • Create a File System Dialog
  • Create a File System Watcher
Database Programming
  • What is a Database?
  • Connect to Postgresql
  • Query data from the database
  • Modify data in the database
  • Connect Tauri to a Database
Deployment
  • Create Platform Specific Installers
  • Cross-Platform Compilation with CI/CD
  • Signing the Application
Conclusion

Training 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.

Software Requirements

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.



Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan