Improved dynamic linking ABIs
Improved dynamic linking ABIs
Posted Feb 24, 2025 8:06 UTC (Mon) by ras (subscriber, #33059)In reply to: Improved dynamic linking ABIs by farnz
Parent article: Rewriting essential Linux packages in Rust
It is the same. What is not the same is C++ (and C) splits the source into .h and .cpp, when you compile against a cpp library you recompile the .h and link with the pre-compiled .cpp files. It's so simple everyone does it that way, and it yields the two benefits I mentioned - fast compile times, and the ability to fix a library by shipping a single shared library rather than all the binaries that depend on it.
In Rust, if doing that is possible it must be very hard, because one one does it that way.
