The Case for Fewer Dependencies in Rust

Armin Ronacher, a renowned developer, laments the over-reliance on external crates in the Rust ecosystem in a recent blog post. He argues that excessive dependencies lead to constant updates, patches, and security audits, burdening developers and often introducing unnecessary code bloat. He advocates a "build it yourself" philosophy, encouraging developers to write their own code when appropriate instead of blindly relying on external libraries. He uses the `terminal_size` crate as an example, illustrating how a simple function depends on multiple crates and has undergone numerous updates, highlighting the drawbacks of over-dependency. The post calls for a shift in the Rust community's perspective, prioritizing fewer dependencies and celebrating developers who create low-dependency libraries.