A library that does just what you need is better then writing it yourself, because it's better tested and maintained.
A library that does what you need + a lot of other stuff too introduces risk.
Managing dependency for too many libraries sucks.
Solve for optimal library size.