Rust is funny because it is perfectly possible to build a single binary that links multiple versions of the same library. Happens when a transitive dependency is written assuming the older API of a library.
Re:Debian discusses vendoring again
by eclipseo76 on Wednesday January 13, 2021 @05:20AM
(#25760251)
I think it all boil down to manpower. Rust crates need a limited set of compat packages and have a way smaller ecosystem than nodejs. Node developers tend to use as many dependencies they can, resulting in hundreds of deps per app. Rust programs have generally less than 10 direct dependencies, and at worst less than a hundred indirect dependencies, so it is still manageable.
https://packages.debian.org/sid/librust-nom-3-dev
https://packages.debian.org/sid/librust-nom-4-dev
https://packages.debian.org/sid/librust-nom-dev