Compilers and linkers do solve this for some languages.
I use C++ and make use of the excellent Boost library. The library is gigantic, but only the parts I use make it into my binary.
I use C++ and make use of the excellent Boost library. The library is gigantic, but only the parts I use make it into my binary.
This feels like something a compiler could or should solve.