Vetting the cargo
Vetting the cargo
Posted Jun 12, 2022 15:17 UTC (Sun) by khim (subscriber, #9252)In reply to: Vetting the cargo by wtarreau
Parent article: Vetting the cargo
> The world is getting more and more concerning: "developer" ... "left-padding" ... "challenging functionality".
If something like strlen could be challenging functionality (and it can, just look on version from glibc), then why couldn't leftpad be problematic?
This being said I sincerely hope Rust doesn't have anything similar to leftpad crate: while I can agree that leftpad may be nontrivial enough to live in some public crate I sincerely hope it would be in a crate with it's friends rightpad, centerpad and other such functions.
Complexity has to live somewhere: if, instead of having one, single, monster libc library you reduce all your crates to single-function ones then you get thousands and tens of thousands of crates as your dependencies which now makes management of crates it's own problem.
