by Tyler Neely on May 3 2020, updated January 26 2022
Often we publish libraries that we hope may solve problems for users. Bringing in a new library to hopefully solve a problem may involve many costs. Often these costs are higher than the value of the library itself. We can take concrete steps to minimize these costs.
The virtues we should strive for:
Additionally, by minimizing costs for users, you often improve your own experience as an author.
cargo treeis great for guiding pruning efforts
cargo install cargo-tree* nobody wants to build 50 more dependencies when they are trying to solve a simple problem with your crate
Experts write baby code. - Zarko Milosevic