Shared libraries
Shared libraries
Posted Nov 25, 2025 2:46 UTC (Tue) by khim (subscriber, #9252)In reply to: Shared libraries by Elv13
Parent article: APT Rust requirement raises questions
> I assume it could be handled using tooling rather than try to maintain a stable shared library ABI across versions.
Not really. One example: let's convert your enum SecurityMode {LEGACY, SECURE, DISABLED}; to Rust and add Option<…&rt; wrapping. And now look on how different versions of Rust thread that. Nice, isn't it? The same effect that you just described—but without any source changes, just with different compiler. And no, release notes wouldn't save you, either, there are nothing in them about this change.
Easy: it doesn't exist. cargo_semver_checks is very through, but it only tracks source compatibility. Never binary. Stable ABI doesn't exist, period.
There was some interest in development of such ABI, but effort have stalled.
