upvote
I agree with your premise and disagree with your conclusion.

There's a lot we "should" do but don't. That's exactly why I think incentives are so important. When I want to add a Cargo dependency, I should look through every dependency that was added after running 'cargo add' and vet it. But I don't, because it's so easy to not do that.

If I had to run 'cargo add' for each transitive dependency manually, there would be two positive effects:

1. I would be forced to at least be aware of which transitive dependencies I'm adding, I can't just ignore them anymore. This is at least a part of the vetting I should be doing today but don't.

2. It would incentivise libraries to use fewer dependencies, because each one would add extra work for the user. The C++ ecosystem has a ton of those "dependency-free header-only" libraries because both being header-only and being dependency-free makes adoption easier in C++. A similar (though lesser) phenomenon would affect Rust if Cargo made you manually add each transitive dependency.

reply
Pious suffering is not a virtue.

We're trying to get thing done, here.

reply
Where did I advocate for suffering and not getting things done
reply
In your entire comment?

You're taking the baffling position that managing dependencies should be hard, tiresome, high-friction.

You're free to suffer on your own, but the rest of us will absolutely move on.

reply
I disagree with your characterization. I have laid out my argument. Can you kindly either fuck off or explain which part you think is incorrect?
reply