Re:Candle: Torch Replacement in Rust
by yodelshady on Wednesday August 09, 2023 @07:48AM
(#37061257)
Tauri might be cool in theory, but Hello World consumers TWO POINT EIGHT GIGABYTES of hard disk on my machine.
Arguing "Rust has no dev speed penalty" in that context is just... no. You are damaging your own cause there, because all advocacy becomes laughable.
> but Hello World consumers TWO POINT EIGHT GIGABYTES of hard disk on my machine.
While yes, that's really bad, it's just temporary build files. The actual executable should be fairly tiny.
So, you built the application, created the installer... and your install on another machine is 2.8GB? I find that hard to believe.
From another response, their Windows installer is under 7mb, and much of that is MSI boilerplate.
Tauri is indeed very cool, and also very small (the installation package is typically under 5MB). I used it to build a wrapper application for the ChatGPT official website, extending the site with many interesting features through script injection. However, the compatibility of the system webview across different platforms is a frustrating matter. https://github.com/lencx/ChatGPT
In general, I would probably reach for Rust if I needed to do anything wither Web-Assembly (wasm) as the path to working is much nicer than other languages imo. Along those lines, Yew is pretty nice as a rust-like framework.
I've also played with Rocket, and found it very nice and effective for api driven web-apps. Haven't done any templating engines in/with Rocket, however.