Categories > Coding > Javascript >

Screw Electron. Check out Tauri (Rust over Node.js)

Posts: 976

Threads: 34

Joined: Dec, 2016

Reputation: 108

Posted

I enjoy using HTML & JS for UI design because it is very familar as someone who is primarily a website developer. In wanting to make Windows applications with HTML & JS, I mostly had no choice but to use Electron. I hated it though. The minimum packaged .exe size is around 60 megabytes. Really, that's my only personal reason. The clunky export. I've received reports from users of my software that the app would be laggy. I suspect due to it's unncessarily high CPU and RAM requirement, which is problematic on low end computers.

 

Now it's 2023 and Electron is not the only real option anymore. In fact, I bet it's about to get wiped out. That or I'm another cringe lord jumping on the Rust hype train. 

 

I've just found out about Tauri and I'm hyped to port all my Electron apps over to it. Just a couple of reasons. 

  1. It uses Rust for the backend. We all know the wonders of Rust. High speed and reliability.
  2. Much smaller bundle size. For a minimal app, it may be around 8Mb. Compare that to Electron's 60Mb minimum.

Check out Tauri if you develop with Electron at all.

  • 1

Moon

Moon

vip

Posts: 7431

Threads: 314

Joined: Aug, 2020

Reputation: 80

Replied

Thanks for sharing, Electron has always been a pain to use on-the-go so I just kinda gave up with the performance

  • 0

marcus__

S.K.I.D

vip

Posts: 444

Threads: 23

Joined: Nov, 2022

Reputation: 29

Replied

honestly i wish there was a simple tool for making html, css, and js into one exe file

  • 0

!!!!!marcus__!!!!!#8611

https://cdn.discordapp.com/attachments/1066053366758780978/1078052772567597127/image.png

0x90

dingleberry#2286

vip

Posts: 249

Threads: 26

Joined: Dec, 2020

Reputation: 28

Replied

Tauri is a great alternative I agree, the memory usage on it is so low as well.

  • 0

Posts: 34

Threads: 8

Joined: Jul, 2022

Reputation: 10

Replied

Rust is the future and the future is not now. 

  • 0

veh_handler and seh_handler disliker

<p>enis</p>

Posts: 1258

Threads: 84

Joined: Feb, 2021

Reputation: 79

Replied

THANK YOU I knew it started with a t I just forgot the name to it you a life saver 

  • 0

https://media.discordapp.net/attachments/1013939973671624917/1027279180192292944/unknown.png
https://media.discordapp.net/attachments/1010670716062007347/1108945330847883274/image.png

Posts: 976

Threads: 34

Joined: Dec, 2016

Reputation: 108

Replied

@atariXD, Tauri is specifically for desktop app development. Check out Yew if you want to get into website frontend with Rust. It's very similar to React.js/Next.js.

  • 0

Posts: 1314

Threads: 54

Joined: Jul, 2021

Reputation: 64

Replied

"That or I'm another cringe lord jumping on the Rust hype train." Literally made me giggle

 

Nice thread though, I might look into getting into rust

  • 0

Mail me at sirweebdev@protonmail.com if you have any questions or you want to say anything to me, I'll reply (maybe).

Syraxes_

Web Developer

vip

Posts: 1298

Threads: 40

Joined: Jul, 2021

Reputation: 67

Replied

Vouch! The exploit I'm developing with a friend is made with TailwindCSS and TauriJs ! We are also learning Rust little by little, It's a lot of fun to develop with Tauri and also to make an exploit as a web application. 😁

  • 0

I'm not lazy, I'm just highly motivated to do nothing. #I💚Dogs.

RiceUsesArchBtw

rice cracker

vip

Posts: 464

Threads: 19

Joined: Aug, 2021

Reputation: 39

Replied

average tauri application be taking 2gb of space

  • 0

https://cdn.discordapp.com/attachments/1023423265160560745/1132948683747500092/Frame_12x.png

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )