Shared libraries
Shared libraries
Posted Nov 24, 2025 19:22 UTC (Mon) by ibukanov (subscriber, #3942)In reply to: Shared libraries by DemiMarie
Parent article: APT Rust requirement raises questions
The big difference between C++ and Rust is that the former has stable ABI while the former lacks those. Of cause even with Rust one can expose things across shared libraries using C-ABI, but then Rust code calling such C-based API will have to use unsafe when calling those even when the implementation is fully safe. With C++ if one avoids templates one can use class-based API including support for virtual functions that can be called across shared library boundaries.
