What are the steps of packaging a all-sufficient rust binary? I mean, I want to make a release where users may just download already compiled rust executable with all the libraries with it. For example:
$ ls release-0.6.2/
rust-executable
libssl.so.1.0.0
libcrypto.so.1.0.0
So the end-user needs to download the archive only, unpack it and he is able to use it without installing openssl into his system. So, the rust-executable loads these listed libssl.so.1.0.0
and libcrypto.so.1.0.0
at runtime instead of LD_LIBRARY_PATH
ones.. I thought of providing a shell script which does LD_PRELOAD
and some other stuff. But I think I want to invent a bycycle here because it is common thing to do and there are best practices already I think.