Replies: 2 comments 4 replies
-
The problem is that rust ABI is unstable and change for optimization reasons. I recommend using multi-call binary, like how busybox does, you would not only get shared stdlib but also dependencies duplication and other code deduplication. |
Beta Was this translation helpful? Give feedback.
0 replies
-
if I rebuild my rust code against the same rust stdlib(libstd...so), and when the libstd changes I will recompile all my code with -C prefer-dynamic, that will work just like c++? that is, one shared lib to be used by multiple rust programs? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
they will also carry the same stdlib and adds up the size fast, I wonder why can't rust have a shared library of stdlib just like libstdc++? to win from c++, you can't have this large size when you have 100+ executables in one system, it will blow up the storage fast on storage restricted systems.
Beta Was this translation helpful? Give feedback.
All reactions