Well that's a bit of a double-sided sword. Libraries also includes lots of failsafes built in that you'll need to implement yourself then. And you'll need to be confident that you don't implement security issues in your own code instead of relying on widely used libraries. But it makes sense if you're worried about supply chain attacks.