3 ms·
> I don't think Rust can either. Rust has no defined ABI at this time, just like C++, but by adding the 'extern' keyword, and a '#[no_mangle]' attribute, you g
by steveklabnik 12y ago
> I don't think Rust can either.
Rust has no defined ABI at this time, just like C++, but by adding the 'extern' keyword, and a '#[no_mangle]' attribute, you get the C ABI, and so then it's easy. We also support a few other ABIs as well, then it's 'extern "fastcall"' or whatever.
(This still doesn't mean "Rust will kill C" or something silly like that.)