Improved dynamic linking ABIs
Improved dynamic linking ABIs
Posted Feb 21, 2025 10:45 UTC (Fri) by farnz (subscriber, #17727)In reply to: Great fit for Rust by ras
Parent article: Rewriting essential Linux packages in Rust
You can say "not here, at this boundary conventional linker is all you need" already, by using the psABI (repr(C) and extern "C") instead of the unstable Rust ABI.
The issue right now is that the psABIs aren't that great for Rust and Rust-like languages; the crABI experiment is aiming to come up with a stable ABI that is suitable for expressing the things that you lose by saying "not here", such as Vec<u32>, since Vec is monomorphized over its type argument.
