3 ms·
Only because rust has an unstable ABI. I feel like it'd be nice to have rust provide an explicit "rust-stable" ABI for those kind of things.
by roblabla 8y ago
Only because rust has an unstable ABI. I feel like it'd be nice to have rust provide an explicit "rust-stable" ABI for those kind of things.
- foota 8y agoI can't find much documentation on it, but it sounds like there's support for the Itanium c++ ABI
- kjeetgill 8y agoReally curious, is there much of a usecase for a stable rust ABI? There is no ecosystem of "rusty shared objects" to support and cargo tends to build things fine without it. As an outside observer it looks like an unnecessary complication.
- roblabla 8y agoPlugin systems and distributing dynamic libraries are the two big use-cases. For the second use-case, distributions can handle that somewhat okay by simply enforcing that all packages are compiled with the same rustc version. That works okay, but it means that, as an external user, you can't really depend on those libraries for your own executables, as you'll need to recompile when the distribution updates.