šŸ¦€ Learning Rust for Tauri, Ep. 1

Tags
RustDesktop Apps
Date Created
10/2/2024

Why Tauri

Little background here, Iā€™m in business of building desktop apps right now. And since Tauri v2 was stable released today, I thought Iā€™d give the ā€œElectron-killerā€ framework a try. Dozens of articles, videos, and blog posts compare and contrast the two, each reaching more or less the same conclusion - Tauri is the better technology, though yet unproven. Sure, missing a few features (menu apps) and plagued by web-development headaches (browser incompatibility), but generally fast, lightweight, secure and robust.

Getting Started

Start by installing all dependencies

// Rust curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh // Follow Rust instructions for your OS specific requirements // Create project (specify framework, langauage, flavor) npm create tauri-app@latest cd tauri-app npm install npm run tauri dev

Development

Whatever framework you choose, development of the frontend is accomplished

Making it feel ā€œnativeā€

There are a few simple CSS changes you can make to improve the ā€œnativeā€ feel of your app.

body { overflow: hidden; cursor: default; text-select: none; }

Whoops, looks like this article isnā€™t done yet. Stay tuned for future update! šŸ˜

Jake Evans @2024