Hacker News new | ask | show | jobs
by vjekoslav 486 days ago
Hello! I can't promise anything on this topic yet, it's on my list, but it's fairly low priority right now. The program was written in C with no dependencies, so introducing a huge dependency like that isn't an option. But I appreciate the advice!
1 comments

I'm curious, how did you conclude that AccessKit is a huge dependency? The binary size does vary by platform, with the Linux backend being especially large due to its use of a pure-Rust implementation of D-Bus. But the Windows x64 DLL is 268 KB, and the macOS x86-64 dylib is 437 KB stripped. The impact of the static library on your binary size will probably be about the same, or maybe a little less because most applications don't require all of the little setter and (especially) getter functions. I'm not happy with the size on Linux, but I think it's acceptable on Windows and macOS, given that accessibility is, in many contexts, a must-have.
Sorry, I based this on your comment "If you can accept a Rust dependency". I haven't actually looked into it yet, but I'll check it out, thanks for sharing.

However, I'd still prefer to go with my own solution, if possible, for tighter integration.