Vetting the cargo
Vetting the cargo
Posted Jun 15, 2022 8:49 UTC (Wed) by khim (subscriber, #9252)In reply to: Vetting the cargo by Wol
Parent article: Vetting the cargo
> And if you want to deprecate and get rid of an old battery, provided the functionality has been updated, you could create your new battery and update the old battery to be - as far as possible - just a shim for the new one.
That's, actually, where you idea falls apart.
Maintaining compatibility is hard.
The deprecation of old crates and replacement with a new ones usually happen when the desired functionality is impossible to add in the backward-compatible way. Otherwise old crates are just extended.
Which more-or-less automatically makes these shims impractical: they would either be impossible or just simple larger and more error-prone than the whole old library.
That's why Linux kernel have “no stable internal API” policy and why Rust keeps it's standard library as small as possible.
As for “list of currently recommended crates”… this idea is discussed so often, that yes, I hope eventually something like that would be made. Maybe with the use of hyped cargo vet.
