| ▲ | hacker_homie 13 hours ago | |
Maybe give crates a gold star if they have no external dependencies? | ||
| ▲ | sdenton4 11 hours ago | parent | next [-] | |
That's not at all a bad idea, imo. And a silver star for crates which only depend on gold star crates... | ||
| ▲ | mmastrac 10 hours ago | parent | prev | next [-] | |
It's hard to have zero deps - I put many hours into one to have no required deps in the end but it was not easy, and writing declarative macros to do anything complex takes work (and a proc macro often means a minimum of two crates). Both of the crates it requires are part of the same project, however. One of my other crates (getaddrinfo) requires windows-sys and libc which would be challenging to get rid of. I like the idea of low deps but zero is tough | ||
| ▲ | rcxdude 6 hours ago | parent | prev [-] | |
This only encourages rewriting perfectly fine libraries badly. There's no simple metric to actually optimize here. | ||