![]() |
|
#1
|
||||
|
||||
|
Rust source code for WinRAR keygen
The attached is the keygen source code for WinRAR, written in Rust.
It's converted from the following C++ repo with vibe coding, just for fun. Dialog GUI is added, DPI-aware. License file is saved to the default path "%AppData%\WinRAR\rarreg.key", no admin required(While Admin is required for "C:\Program Files\WinRAR\rarreg.key"), https://github.com/bitcookies/winrar-keygen/
__________________
AKA Solomon/blowfish. Last edited by WhoCares; 03-12-2026 at 09:28. |
| The Following User Gave Reputation+1 to WhoCares For This Useful Post: | ||
cjack (03-11-2026) | ||
| The Following 4 Users Say Thank You to WhoCares For This Useful Post: | ||
blue_devil (03-11-2026), cjack (03-11-2026), niculaita (03-10-2026), ontryit (03-15-2026) | ||
|
#2
|
||||
|
||||
|
@WhoCares, I have added egui to your project. Now anyone can compile it for any platform.
What a world: Quote:
@WhoCares maybe you should add this to a repo? Code:
Source Updated for cross compilation https://pixeldrain.com/u/JuHHfMTy Windows x86_64 https://pixeldrain.com/u/Nv7odq85 Windows arm64 https://pixeldrain.com/u/z4dbpmET Linux x86_64 https://pixeldrain.com/u/itn3k2be Linux arm64 https://pixeldrain.com/u/TBXWPGQD |
| The Following User Says Thank You to blue_devil For This Useful Post: | ||
niculaita (03-12-2026) | ||
|
#3
|
||||
|
||||
|
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) | ||
|
#4
|
||||
|
||||
|
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! |
|
#5
|
||||
|
||||
|
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) | ||
|
#7
|
||||
|
||||
|
Put together a libui-rs variant in under an hour with an AI agent.
![]() Tested on Windows, macOS, and Ubuntu. Note: there’s a small macOS-only UI glitch — the "Generate" button doesn’t stretch vertically.
__________________
AKA Solomon/blowfish. |
| The Following 3 Users Say Thank You to WhoCares For This Useful Post: | ||
|
#8
|
||||
|
||||
|
Don't forget to create a release build.
By default a debug build is created. Code:
cargo build --release
__________________
EnJoy! |
|
#9
|
||||
|
||||
|
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 | |
|
|