3 ms·
I think you can dynamic link Rust, but the ABI is unstable. https://doc.rust-lang.org/reference/linkage.html https://doc.rust-lang.org/reference/linkage.html
by loeg 6y ago
I think you can dynamic link Rust, but the ABI is unstable.
https://doc.rust-lang.org/reference/linkage.html https://doc.rust-lang.org/reference/linkage.html
- deleted 6y ago[deleted]
- estebank 6y agoThe Rust ABI is unstable, the C ABI is stable. You can always dynamically link against a C object file, even one written in Rust. I would love to see a restricted stable Rust ABI for types without generics and trait objects and nothing else. That would enable library authors to easily express/provide a dynamic linking surface, while the default remains static linking. I tend to agree that things that "are part of the OS" like QT and GTK should be linked dynamically, while most other things shouldn't.