3 ms·
> Rust is only suitable for static linking This is incorrect, Rust supports dynamic linking. https://doc.rust-lang.org/reference/linkage.html https://doc.rust
by whyever 8y ago
> Rust is only suitable for static linking
This is incorrect, Rust supports dynamic linking.
https://doc.rust-lang.org/reference/linkage.html https://doc.rust-lang.org/reference/linkage.html
- flukus 8y agoIt supports it terribly. Since there's no stable ABI you have to use the same compiler version. That or be limited by the C ABI and give up most of the safety features.
- elteto 8y agoThis isn’t unique to Rust, C++ has the same issues when it comes to using shared libraries. You either carefully control compiling and shared library versions or you drop down to C. I don’t know any native language that can do this in a better way.