@cwebber Does Rust not use platform libraries at all? Or is the stance “oh we do dynamic linking when we need to but you don’t get to do that.”
Top-level
5 comments
@complexmath @cwebber i definitely agree that rust's ecosystem tends to be hostile to dynamic linking, but it seems like from this thread that a lot of people are getting the impression that rust doesn't allow dynamic linking at all, and that just isn't true @iitalics @complexmath Yeah. I added a followup clarifying that it's a cultural problem most especially https://octodon.social/@cwebber/110707218268221920 (And a lot of this comes from inheriting the LLVM toolchain, where that attitude also exists.) @complexmath the technical issues are the same since rust more or less copied c++'s compilation model, down to using the same backend (llvm) |
@complexmath @cwebber rust uses platform libraries, allows you to build dynamic libraries with C ABI's, etc. the main issue with dynamic libraries in rust is that the story for building dynamic libraries with rust ABI's and using them in your rust code is poorly supported. so usually even when you build a dynamic library you statically link all of your rust dependencies