←back to thread

125 points lexokoh | 1 comments | | HN request time: 0s | source
Show context
phplovesong ◴[] No.45003800[source]
This has 10 additional deps. 10! Rust is the new Javascript.
replies(1): >>45004136 #
crote ◴[] No.45004136[source]
Complaining about the number of dependencies is completely meaningless if you don't take into account what those dependencies do, and what the ecosystem looks like.

For example, `tray-icon` looks pretty useful for a lightweight app which basically is a tray icon: rewriting that library from scratch would be a massive waste of time.

On the other end of the spectrum, `log` and `serde` provide basic functionality which most languages will have in their standard library. Rust intentionally keeps a small standard library to avoid ossifying potentially bad ideas. The crates have tens of millions of users, rewriting that yourself would be stupidity.

It's very easy to criticize the length of their dependency list, but could you point to a specific one which you deem unnecessary? Which one do you consider to be a "leftPad", and what trivial code fragment would you replace it with?

replies(2): >>45005039 #>>45008652 #
1. userbinator ◴[] No.45008652[source]
I haven't had to do Mac GUI development, but on Windows managing a tray icon is a single system library function: https://learn.microsoft.com/en-us/windows/win32/api/shellapi...