135 ms·
Maybe give crates a gold star if they have no external dependencies?
by hacker_homie 4mo ago
Maybe give crates a gold star if they have no external dependencies?
- sdenton4 4mo agoThat's not at all a bad idea, imo. And a silver star for crates which only depend on gold star crates...
- mmastrac 4mo agoIt'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 https://crates.io/crates/ctor/1.0.4/dependencies https://crates.io/crates/ctor/1.0.4/dependencies
- hacker_homie 4mo agoThat’s because you are not moving thing into the standard library :)
- rcxdude 4mo agoThis only encourages rewriting perfectly fine libraries badly. There's no simple metric to actually optimize here.