4 ms·
Small crates is not a benefit wrt. The wrong 3 lines of code in crate is all it takes to be owned, regardless of whether the crate is 100 lines or 100k lines. L
by jononor 4y ago
Small crates is not a benefit wrt. The wrong 3 lines of code in crate is all it takes to be owned, regardless of whether the crate is 100 lines or 100k lines.
Large number of crates and developers is a negative, because one needs to trust or review all of them.
- dralley 4y agoI don't really understand this line of thinking. The C++ method of "avoiding" this problem is to shove things into mega-libraries like Boost, or copying and pasting code. If you need the functionality, would you rather review 5 focused libraries, or Boost? Copying and pasting code is equally do-able in both languages.
- elcritch 4y agoBoost -- it has a development process and has a proven track record. Those five focused libraries, times 30 other deps becomes 150 different developers to possibly vet. Anytime any of them can pass on the project to someone less scrupulous.
- laund 4y agoYou should also keep in mind that a lot of Rust library developers release many individual crates from within the same project, inflating the crate count somewhat.