18 ms·
> Missing support for shared libraries Well, rust does support shared libraries. Call things by their name: what distros want is for all libraries to have a st
by the8472 2y ago
> Missing support for shared libraries
Well, rust does support shared libraries. Call things by their name: what distros want is for all libraries to have a stable ABI. And I guess some sort of segmentation that the source of one library doesn't bleed into the binary output of another, and I think the latter part is even more tricky than ABI stability. Generics are monomorphized in downstream crates (aren't C++ templates the same?), so I think you'd either have to ban generic functions and inlining from library APIs or do dependent-tree rebuilds anyway.
- silon42 2y agoNot necessarily ban, but any incompatible changes to those is an ABI break.
- the8472 2y agoWhich would require rebuilding all dependents, yeah, that was the second option mentioned. If you're already willing to rebuild-the-world then you could use dynamic libraries today. But you'd only get a shared memory / size benefit from that, not drop-in-updates.