4 ms·
Don't they? I just went to crates.io and picked a random newly updated crate, which happened to be pixelfix, which fixes transparent pixels in pngs. It has si
by staminade 1y ago
Don't they?
I just went to crates.io and picked a random newly updated crate, which happened to be pixelfix, which fixes transparent pixels in pngs.
It has six dependencies and hundreds of transient dependencies, may of which appear to be small and highly specific a la left-pad.
https://crates.io/crates/pixelfix/0.1.1/dependencies https://crates.io/crates/pixelfix/0.1.1/dependencies
Maybe this package isn't representative, but it feels pretty identical to the JS ecosystem.
- koakuma-chan 1y agoIt depends on `image` which in turn depends on a number of crates to handle different file types. If you disable all `image` features, it only has like 5 dependencies left.
- staminade 1y agoAnd all those 5 remaining dependencies have lots of dependencies of their own. What's your point?
- koakuma-chan 1y ago> What's your point? Just defending Rust. > 5 remaining dependencies have lots of dependencies of their own. Mostly well-known crates like rayon, crossbeam, tracing, etc.
- johnisgood 1y agoYou cannot defend Rust if this is reality. Any Rust project I have ever compiled pulled in over 1000 dependencies. Recently it was Zed with its >2000 dependencies.
- koakuma-chan 1y agoI think it's justified for Zed. It does a lot of things.
- rudedogg 1y agoZed isn’t special, I doubt Sublime Text has thousands of dependencies. It’s a language/culture problem. Edit: Ghostty is a good counter-example that is open source. https://github.com/ghostty-org/ghostty/tree/main/pkg https://github.com/ghostty-org/ghostty/tree/main/pkg
- koakuma-chan 1y agoZed is closer to IntelliJ or VSCode than to Sublime Text.
- biggusdickus69 1y agoIn the amount of bloat, yes.
- johnisgood 1y agoIt is also important to note that this is not specific to Zed. As someone else have mentioned, it is a cultural problem. I picked Zed as an example because that is what I compiled the last time, but it is definitely not limited to Zed. There are many Rust projects that pull in over 1000 dependencies and they do much less than Zed.
- koakuma-chan 1y agoYeah tbh one time I had a Rust job and their back-end had like 700-800 dependencies.