Menu

I shipped a 3 MB Windows app with Tauri instead of Electron (and I didn't know Rust)
📰

I shipped a 3 MB Windows app with Tauri instead of Electron (and I didn't know Rust)

DEV Community: rust·Code A Program·about 4 hours ago
#e9htp1CA
#devtorust#devto#dev#windows#ctrl
Reading 0:00
15s threshold

I'm a web developer. React and TypeScript are what I'm fast in. Last month I shipped my first paid Windows app, a sticky notes app called HideNStick Notes, to the Microsoft Store.

Here's what I learned building a desktop app as a web dev: why I picked Tauri over Electron, how I handled the Rust parts without knowing Rust, and why I sold it through the Store instead of my own website.

The app

Sticky notes that live in the edge of your screen. Bump your mouse against the screen edge twice and your notes slide out. Put them away and your screen is clear again. You can pin a note to keep it open, use tabs inside a note, and press Ctrl+Alt+C to send selected text from any app straight into a note.

Why Tauri, not Electron

Most desktop apps use Electron: VS Code, Slack, Discord. But every Electron app ships its own copy of Chromium, so even a tiny app ends up at 80 MB or more.

Tauri uses the web view that's already on the computer. On Windows that's WebView2, which comes with Windows 10 and 11.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.