DEV Community

Discussion on: Rust GUI: Introduction, a.k.a. the state of Rust GUI libraries (As of January 2021)

Collapse
 
walkero profile image
George Sokianos

I think you missed Davide's comment below. Actually the binary became quite small when I used cargo build --release to build it. So, my comment above is not accurate any more.

Thread Thread
 
lexiebkm profile image
Alexander B.K. • Edited

You are right. Without including debugging feature, by adding --release option, the size would decrease much smaller.
But, when I build and compared two simple button apps, I got the result :

  • Rust app is 17Mb
  • C++ app is only 132Kb. I also tried a small GUI app using C++ that had a feature of simple datagrid (table) where the cells are editable and found the file size was about 1Mb which is acceptable. This type of desktop GUI app is one that I had developed in the past using Visual Basic 6. One thing that I also found when compiling even a small Rust app like that, the compile time was very long on my computer. It could take 1 hour or more.