Re:How Swift achieved dynamic linking where Rust couldn't (2...
by jgilias on Saturday February 20, 2021 @06:15PM
(#26208986)
Just dropping by to say that you're right. You can absolutely _load_ dynamic libraries from Rust. I've done this. But of course, the executable is not dynamically _linked_ to the requested libraries. E.g., running `ldd` on my executable won't show which shared libraries it is or should be linked against. Rather, it will just fail with an error if the requested library is not there. There are crates for loading dynamic libraries that use `dlopen` under the hood.
[ Parent
| on HN ]
There are no comments on this comment yet.