| ▲ | newpavlov 5 hours ago | |
While I agree that dependency tree size can be sometimes a problem in Rust, I think it often gets overblown. Sure, having hundreds of dependencies in a "simple" project can be scary, but: 1) No one forces you to use dependencies with large number of transitive dependencies. For example, feel free to use `ureq` instead of `reqwest` pulling the async kitchen sink with it. If you see an unnecessary dependency, you could also ask maintainers to potentially remove it. 2) Are you sure that your project is as simple as you think? 3) What matters is not number of dependencies, but number of groups who maintain them. On the last point, if your dependency tree has 20 dependencies maintained by the Rust lang team (such as `serde` or `libc`), your supply chain risks are not multiplied by 20, they stay at one and almost the same as using just `std`. | ||
| ▲ | galangalalgol 5 hours ago | parent | next [-] | |
On your last note, I wish they would get on that signed crate subset. Having the same dependency tree as cargo, clippy, and rustc isn't increasing my risk. Rust has already had a supply chain attack propagating via build.rs some years ago. It was noticed quickly, so staying pinned to the oldest thing that worked and had no cve pop in cargo audit is a decent strategy. The remaining risk is that some more niche dependency you use is and always has been compromised. | ||
| ▲ | assbuttbuttass 4 hours ago | parent | prev [-] | |
Is serde maintained by the Rust team? I thought it was basically a one-man show owned by dtolnay | ||