3 ms·
Does it not already have them if the programmer elect for it by choosing `repr(C)`, or is there more to it than that?
by Blikkentrekker 6y ago
Does it not already have them if the programmer elect for it by choosing `repr(C)`, or is there more to it than that?
- steveklabnik 6y agoYou are exposing an imprecision in the way that this is usually talked about, yes. If you are willing to use the C ABI, then you can use a combination of that repr and annotations on your functions and produce a shared object in Rust with a stable ABI. What people usually mean here is that Rust would have its own stable ABI, that you would get “for free,” without needing to do that work. (It’s never actually free of course... but that’s yet another detail that is usually papered over when people talk about this.)