Version-specific libruststd.so

Has there ever been any discussions about producing a libruststd.so/dll? I know Rust doesn't have a stable ABI, but this doesn't preclude a per-version (libruststdX.Y.so/dll) library.

Or is there too much generics for a dynamic std library to be worth the trouble?

There is already a dylib version of the standard library in the sysroot:

$ ls $(rustc --print target-libdir) | grep libstd-
libstd-5670385a2fe8b60b.rlib
libstd-5670385a2fe8b60b.so

The 5670385a2fe8b60b part here is unique for each rustc version and target, so it is fine to have multiple versions of it co-existing.

3 Likes