logoalt Hacker News

mamcx • today at 8:40 PM • 1 reply • view on HN

I wonder why not make the ABI contract explicit, instead of do what C do that froze the lang.

Similar to :

    #[rust_abi]
    struct MustConform
    fn must_conform
So the user must write the shims instead of rust magically build it. This also mean that ABI changes become visible, and changes to rust not mean worries about ABI.

Replies

chiffaa • today at 9:37 PM

To my knowledge this is what crABI is all about