Rust Dependencies: A 3.6 Million Line Code Nightmare
2025-05-09
The author loves Rust, but its dependency management is causing concern. A simple web server project, after depending on several crates, ballooned to 3.6 million lines of code, mostly from dependencies. This raises concerns about code auditing and dependency maintenance. The author tried code counting and vendoring, but the problem persists. The article explores the challenges of Rust's dependency management and how to balance performance, safety, and code size.
Development
code size