|
|
|
|
|
by zozbot234
1385 days ago
|
|
> It’s a little bit wonky, but I’m pretty sure that it can work. Not that wonky, it's really a natural consequence of the fact that Rust's stable ABI is the C ABI. Plus you can then use lib-internal from any language that supports FFI to C, not just from Rust. (Of course, some things just cannot be supported across a dylib boundary, such as arbitrary monomorphized code. But this limitation applies to all such languages; it's why you have "header-only" libraries in C/C++ for example.) |
|