Re:Optimizing Rust Struct Size
by oconnor663 on Saturday April 15, 2017 @06:48PM
(#14123267)
> This effectively makes the optimization algorithm part of the Rust ABI; you cannot change (or even fix a bug in) the layout algorithm without breaking binary compatibility.
I think the official word is that Rust has no stable ABI, unless you use repr(C) to force the C ABI?
Re:Optimizing Rust Struct Size
by kibwen on Saturday April 15, 2017 @07:02PM
(#14123336)
Indeed, it's generally assumed that no two versions of the compiler are binary-compatible. ABI stability may come someday, but it's not a high priority at the moment.
I think the official word is that Rust has no stable ABI, unless you use repr(C) to force the C ABI?