DEV Community

loading...

Discussion on: Advice for building a cross-platform RUST gui

Collapse
jrop profile image
Jonathan Apodaca

I've heard that gtk-rs is really nice (and that the GNOME project itself is supporting Rust bindings for version 4 --- wish I had a source on that).

For cross-platform UI's, I use web-view. The UI is written in TypeScript/React (and built with esbuild), and it calls into Rust to perform low-level operations.

Collapse
thefluxapex profile image
Ian Pride Author

Thank you. From reading a little bit it looks like web-view is for web based stuff, no? I won't get into why, but I have a low tolerance for web based anything and I pretty much only build software for myself and a few family and friends, so it'll all be natively installable/executable.

I already plan on checking out gtk-rs, especially since I have plenty of experience with GTK.

Thanks again.

Collapse
jrop profile image
Jonathan Apodaca

Yep, it is an embedded browser window (but it uses the natively-available browser engine), so the resulting executable is much smaller than any electron-app.

I won't get into why, but I have a low tolerance for web based anything

Yeah, I can't wait for pure-Rust GUI solutions, but for now this is the best way I've found to do cross-platform.

Thread Thread
thefluxapex profile image
Ian Pride Author

Very helpful; can't say thanks enough!

Forem Open with the Forem app