![]() |
|
|
|
#1
|
||||
|
||||
|
hello,
In order to keep the exe file small(no more than 500KB), my package uses "native-windows-gui" crate which supports Windows only, but with Windows built-in editing hotkeys and context menus. I have another keygen template which produces a 10MB exe with Rust GPUI framework. Your keygen produces a 4.x MB exe and looks beautiful. And I put it in my private repo ![]() Thanks for your work! Quote:
__________________
AKA Solomon/blowfish. Last edited by WhoCares; 03-11-2026 at 19:21. |
| The Following 2 Users Say Thank You to WhoCares For This Useful Post: | ||
blue_devil (03-11-2026), niculaita (03-12-2026) | ||
|
#2
|
||||
|
||||
|
I am fully aware of that ph*t **s binaries. With vibe coding, we can make separate native guis. But who has that time.
![]() I prefer GTK on Linux, but I want to give a try on egui. Even though code looks simpler, end result is huge. At least they are working! |
|
#3
|
||||
|
||||
|
If we want a small binary size and only need a UI with basic controls, libui-rs is also a viable option for cross-platform. It binds to the UI frameworks provided by the operating system, so the resulting size is relatively small.
wxWidgets is another cross-platform option, it also binds to native UI framework, but the compilation process is somewhat more complicated.
__________________
AKA Solomon/blowfish. |
| The Following User Says Thank You to WhoCares For This Useful Post: | ||
blue_devil (03-12-2026) | ||
|
#4
|
||||
|
||||
|
Don't forget to create a release build.
By default a debug build is created. Code:
cargo build --release
__________________
EnJoy! |
|
#5
|
||||
|
||||
|
Thanks Jupiter for the reminder.
The sizes are for release builds. They are relatively large because the rendering engine is bundled into the binaries. With native UI frameworks, the rendering engine is provided by the OS (system DLLs / drivers), so the app only contains a thin abstraction layer over the native APIs.
__________________
AKA Solomon/blowfish. Last edited by WhoCares; 03-21-2026 at 16:44. |
| The Following User Says Thank You to WhoCares For This Useful Post: | ||
niculaita (03-22-2026) | ||
![]() |
| Thread Tools | |
| Display Modes | |
|
|