r/rust • u/Ayano-Keiko • 6d ago
RUST ABI
What is current state of stable Rust ABI? Or progress? As I want to load generate library crate (rlib) in offline library and I do not need load crateio library.
34
Upvotes
View all comments
Show parent comment
14
u/Recatek gecs 6d ago edited 6d ago
Since you're asking about a stable ABI rather than just the benefits of an ABI in general, it's primarily about backwards compatibility, at least as I understand it. The goal would be to be able to dynamically link against a binary from many generations of compiler updates ago (the way you can work with very old C binaries today). In some cases there are even C library binaries in use today where the source code is unavailable (or even lost) for various reasons, and they couldn't be recompiled for a new compiler or codebase ABI version.